Commit 975c11d2 authored by Dan Pascu's avatar Dan Pascu

Prevent the status message from shifting left/right when duration changes

parent fc741dc8
...@@ -1321,6 +1321,7 @@ class AudioSessionWidget(base_class, ui_class): ...@@ -1321,6 +1321,7 @@ class AudioSessionWidget(base_class, ui_class):
font = self.packet_loss_label.font() font = self.packet_loss_label.font()
font.setPointSizeF(self.status_label.fontInfo().pointSizeF() - 1) font.setPointSizeF(self.status_label.fontInfo().pointSizeF() - 1)
self.packet_loss_label.setFont(font) self.packet_loss_label.setFont(font)
self.duration_label.setMinimumWidth(self.duration_label.fontMetrics().width('0:00:00') + 1) # prevent the status from shifting left/right when duration changes
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
......
...@@ -385,12 +385,6 @@ ...@@ -385,12 +385,6 @@
</property> </property>
<item> <item>
<widget class="DurationLabel" name="duration_label"> <widget class="DurationLabel" name="duration_label">
<property name="minimumSize">
<size>
<width>38</width>
<height>0</height>
</size>
</property>
<property name="text"> <property name="text">
<string>0:00:00</string> <string>0:00:00</string>
</property> </property>
......
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