Add a minimum size on ZL/ZR sliders for themes with have big handles

KDE Plasma's Breeze has big slider handle, which is cut off so let's add
a minimum size to these sliders.
This commit is contained in:
Joshua Goins 2023-05-16 15:25:36 -04:00
commit e3df744955

View file

@ -1327,22 +1327,28 @@
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QSlider" name="sliderZLThreshold"> <widget class="QSlider" name="sliderZLThreshold">
<property name="maximumSize"> <property name="minimumSize">
<size> <size>
<width>70</width> <width>0</width>
<height>15</height> <height>20</height>
</size> </size>
</property> </property>
<property name="maximum"> <property name="maximumSize">
<number>100</number> <size>
</property> <width>70</width>
<property name="orientation"> <height>20</height>
<enum>Qt::Horizontal</enum> </size>
</property> </property>
</widget> <property name="maximum">
</item> <number>100</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
@ -1774,22 +1780,28 @@
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QSlider" name="sliderZRThreshold"> <widget class="QSlider" name="sliderZRThreshold">
<property name="maximumSize"> <property name="minimumSize">
<size> <size>
<width>70</width> <width>0</width>
<height>15</height> <height>20</height>
</size> </size>
</property> </property>
<property name="maximum"> <property name="maximumSize">
<number>100</number> <size>
</property> <width>70</width>
<property name="orientation"> <height>20</height>
<enum>Qt::Horizontal</enum> </size>
</property> </property>
</widget> <property name="maximum">
</item> <number>100</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>