forked from M-Labs/thermostat
Set fan slider value minimum to 1, not 0
This commit is contained in:
parent
fca4b061ee
commit
7e1b64b72c
|
@ -573,6 +573,9 @@
|
||||||
<height>0</height>
|
<height>0</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="minimum">
|
||||||
|
<number>1</number>
|
||||||
|
</property>
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<number>100</number>
|
<number>100</number>
|
||||||
</property>
|
</property>
|
||||||
|
|
|
@ -252,6 +252,7 @@ class Ui_MainWindow(object):
|
||||||
self.fan_power_slider.setMinimumSize(QtCore.QSize(200, 0))
|
self.fan_power_slider.setMinimumSize(QtCore.QSize(200, 0))
|
||||||
self.fan_power_slider.setMaximumSize(QtCore.QSize(200, 16777215))
|
self.fan_power_slider.setMaximumSize(QtCore.QSize(200, 16777215))
|
||||||
self.fan_power_slider.setBaseSize(QtCore.QSize(200, 0))
|
self.fan_power_slider.setBaseSize(QtCore.QSize(200, 0))
|
||||||
|
self.fan_power_slider.setMinimum(1)
|
||||||
self.fan_power_slider.setMaximum(100)
|
self.fan_power_slider.setMaximum(100)
|
||||||
self.fan_power_slider.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
self.fan_power_slider.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
self.fan_power_slider.setObjectName("fan_power_slider")
|
self.fan_power_slider.setObjectName("fan_power_slider")
|
||||||
|
|
Loading…
Reference in New Issue