Commit fd072ca8 authored by Dan Pascu's avatar Dan Pascu

Renamed labels

parent 7e629025
......@@ -87,9 +87,9 @@ class SessionWidget(base_class, ui_class):
super(SessionWidget, self).__init__(parent)
with Resources.directory:
self.setupUi(self)
latency_font = self.latency.font()
latency_font.setPointSizeF(self.status.fontInfo().pointSizeF() - 1)
self.latency.setFont(latency_font)
font = self.latency_label.font()
font.setPointSizeF(self.status_label.fontInfo().pointSizeF() - 1)
self.latency_label.setFont(font)
self.mute_button.type = LeftSegment
self.hold_button.type = MiddleSegment
self.record_button.type = MiddleSegment
......@@ -108,8 +108,8 @@ class SessionWidget(base_class, ui_class):
self.mute_button.hide()
#self.srtp_label.hide()
#self.tls_label.hide()
#self.latency.hide()
self.address.setText(session_info.name or session_info.uri)
#self.latency_label.hide()
self.address_label.setText(session_info.name or session_info.uri)
def _get_selected(self):
return self.__dict__['selected']
......@@ -233,14 +233,14 @@ class DraggedSessionWidget(base_class, ui_class):
self.hangup_button.hide()
self.tls_label.hide()
self.srtp_label.hide()
self.latency.hide()
self.duration.hide()
self.stream_info.setText(u'')
self.address.setText(session_widget.address.text())
self.latency_label.hide()
self.duration_label.hide()
self.stream_info_label.setText(u'')
self.address_label.setText(session_widget.address_label.text())
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:
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):
painter = QPainter(self)
......
......@@ -41,7 +41,7 @@
<number>1</number>
</property>
<item>
<widget class="QLabel" name="address">
<widget class="QLabel" name="address_label">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
......@@ -129,7 +129,7 @@
<number>1</number>
</property>
<item>
<widget class="QLabel" name="stream_info">
<widget class="QLabel" name="stream_info_label">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
......@@ -164,7 +164,7 @@
</widget>
</item>
<item>
<widget class="QLabel" name="latency">
<widget class="QLabel" name="latency_label">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
......@@ -253,7 +253,7 @@
</font>
</property>
<property name="text">
<string>Latency 100 ms</string>
<string>Latency 100ms</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
......@@ -299,7 +299,7 @@
<number>1</number>
</property>
<item>
<widget class="QLabel" name="duration">
<widget class="QLabel" name="duration_label">
<property name="minimumSize">
<size>
<width>38</width>
......@@ -312,7 +312,7 @@
</widget>
</item>
<item>
<widget class="QLabel" name="status">
<widget class="QLabel" name="status_label">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<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