]> git.sesse.net Git - nageru/commitdiff
Make channel labels ignore their horizontal size policy.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 27 Apr 2018 18:49:18 +0000 (20:49 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 27 Apr 2018 18:49:18 +0000 (20:49 +0200)
This fixes an issue where the aspect ratio of the videos would be
all messed up due to the labels dictating the size. This could even
keep the window from being maximized if there were too many long
labels.

The best here would probably be some sort of marquee, but this is
an OK fix for now.

ui_display.ui

index 51022fec9c47d4729792b0fbde648ef1273cf79b..a09294ff90706e2f68271d55a5519a713fbb41c3 100644 (file)
@@ -77,7 +77,7 @@
      <item>
       <widget class="QLabel" name="label">
        <property name="sizePolicy">
-        <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+        <sizepolicy hsizetype="Ignored" vsizetype="Preferred">
          <horstretch>1</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>