Commit fd072ca8 authored by Dan Pascu's avatar Dan Pascu

Renamed labels

parent 7e629025
...@@ -87,9 +87,9 @@ class SessionWidget(base_class, ui_class): ...@@ -87,9 +87,9 @@ class SessionWidget(base_class, ui_class):
super(SessionWidget, self).__init__(parent) super(SessionWidget, self).__init__(parent)
with Resources.directory: with Resources.directory:
self.setupUi(self) self.setupUi(self)
latency_font = self.latency.font() font = self.latency_label.font()
latency_font.setPointSizeF(self.status.fontInfo().pointSizeF() - 1) font.setPointSizeF(self.status_label.fontInfo().pointSizeF() - 1)
self.latency.setFont(latency_font) self.latency_label.setFont(font)
self.mute_button.type = LeftSegment self.mute_button.type = LeftSegment
self.hold_button.type = MiddleSegment self.hold_button.type = MiddleSegment
self.record_button.type = MiddleSegment self.record_button.type = MiddleSegment
...@@ -108,8 +108,8 @@ class SessionWidget(base_class, ui_class): ...@@ -108,8 +108,8 @@ class SessionWidget(base_class, ui_class):
self.mute_button.hide() self.mute_button.hide()
#self.srtp_label.hide() #self.srtp_label.hide()
#self.tls_label.hide() #self.tls_label.hide()
#self.latency.hide() #self.latency_label.hide()
self.address.setText(session_info.name or session_info.uri) self.address_label.setText(session_info.name or session_info.uri)
def _get_selected(self): def _get_selected(self):
return self.__dict__['selected'] return self.__dict__['selected']
...@@ -233,14 +233,14 @@ class DraggedSessionWidget(base_class, ui_class): ...@@ -233,14 +233,14 @@ class DraggedSessionWidget(base_class, ui_class):
self.hangup_button.hide() self.hangup_button.hide()
self.tls_label.hide() self.tls_label.hide()
self.srtp_label.hide() self.srtp_label.hide()
self.latency.hide() self.latency_label.hide()
self.duration.hide() self.duration_label.hide()
self.stream_info.setText(u'') self.stream_info_label.setText(u'')
self.address.setText(session_widget.address.text()) self.address_label.setText(session_widget.address_label.text())
if session_widget.conference_position is None: if session_widget.conference_position is None:
self.status.setText(u'Drop over a session to conference them') self.status_label.setText(u'Drop over a session to conference them')
else: else:
self.status.setText(u'Drop outside the conference to detach') self.status_label.setText(u'Drop outside the conference to detach')
def paintEvent(self, event): def paintEvent(self, event):
painter = QPainter(self) painter = QPainter(self)
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<number>1</number> <number>1</number>
</property> </property>
<item> <item>
<widget class="QLabel" name="address"> <widget class="QLabel" name="address_label">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred"> <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
<number>1</number> <number>1</number>
</property> </property>
<item> <item>
<widget class="QLabel" name="stream_info"> <widget class="QLabel" name="stream_info_label">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred"> <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="latency"> <widget class="QLabel" name="latency_label">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred"> <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
...@@ -253,7 +253,7 @@ ...@@ -253,7 +253,7 @@
</font> </font>
</property> </property>
<property name="text"> <property name="text">
<string>Latency 100 ms</string> <string>Latency 100ms</string>
</property> </property>
<property name="alignment"> <property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
...@@ -299,7 +299,7 @@ ...@@ -299,7 +299,7 @@
<number>1</number> <number>1</number>
</property> </property>
<item> <item>
<widget class="QLabel" name="duration"> <widget class="QLabel" name="duration_label">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>38</width> <width>38</width>
...@@ -312,7 +312,7 @@ ...@@ -312,7 +312,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="status"> <widget class="QLabel" name="status_label">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred"> <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment