forked from M-Labs/thermostat
Remove setObjectName
This commit is contained in:
parent
790e744822
commit
0d1cb074e1
|
@ -245,7 +245,6 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||||
self.host_set_line.setMaximumSize(QtCore.QSize(160, 16777215))
|
self.host_set_line.setMaximumSize(QtCore.QSize(160, 16777215))
|
||||||
self.host_set_line.setMaxLength(15)
|
self.host_set_line.setMaxLength(15)
|
||||||
self.host_set_line.setClearButtonEnabled(True)
|
self.host_set_line.setClearButtonEnabled(True)
|
||||||
self.host_set_line.setObjectName("host_set_line")
|
|
||||||
|
|
||||||
self.host_set_line.setText("192.168.1.26")
|
self.host_set_line.setText("192.168.1.26")
|
||||||
self.host_set_line.setPlaceholderText(_translate("MainWindow", "IP for the Thermostat"))
|
self.host_set_line.setPlaceholderText(_translate("MainWindow", "IP for the Thermostat"))
|
||||||
|
@ -265,7 +264,6 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||||
self.port_set_spin.setMaximumSize(QtCore.QSize(70, 16777215))
|
self.port_set_spin.setMaximumSize(QtCore.QSize(70, 16777215))
|
||||||
self.port_set_spin.setMaximum(65535)
|
self.port_set_spin.setMaximum(65535)
|
||||||
self.port_set_spin.setProperty("value", 23)
|
self.port_set_spin.setProperty("value", 23)
|
||||||
self.port_set_spin.setObjectName("port_set_spin")
|
|
||||||
|
|
||||||
port = QtWidgets.QWidgetAction(self.connection_menu)
|
port = QtWidgets.QWidgetAction(self.connection_menu)
|
||||||
port.setDefaultWidget(self.port_set_spin)
|
port.setDefaultWidget(self.port_set_spin)
|
||||||
|
@ -283,14 +281,11 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||||
self.fan_group = QtWidgets.QWidget()
|
self.fan_group = QtWidgets.QWidget()
|
||||||
self.fan_group.setEnabled(False)
|
self.fan_group.setEnabled(False)
|
||||||
self.fan_group.setMinimumSize(QtCore.QSize(40, 0))
|
self.fan_group.setMinimumSize(QtCore.QSize(40, 0))
|
||||||
self.fan_group.setObjectName("fan_group")
|
|
||||||
self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.fan_group)
|
self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.fan_group)
|
||||||
self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0)
|
self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0)
|
||||||
self.horizontalLayout_6.setSpacing(0)
|
self.horizontalLayout_6.setSpacing(0)
|
||||||
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
|
|
||||||
self.gan_layout = QtWidgets.QHBoxLayout()
|
self.gan_layout = QtWidgets.QHBoxLayout()
|
||||||
self.gan_layout.setSpacing(9)
|
self.gan_layout.setSpacing(9)
|
||||||
self.gan_layout.setObjectName("gan_layout")
|
|
||||||
self.fan_lbl = QtWidgets.QLabel(parent=self.fan_group)
|
self.fan_lbl = QtWidgets.QLabel(parent=self.fan_group)
|
||||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Expanding)
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
sizePolicy.setHorizontalStretch(0)
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
@ -300,7 +295,6 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||||
self.fan_lbl.setMinimumSize(QtCore.QSize(40, 0))
|
self.fan_lbl.setMinimumSize(QtCore.QSize(40, 0))
|
||||||
self.fan_lbl.setMaximumSize(QtCore.QSize(40, 16777215))
|
self.fan_lbl.setMaximumSize(QtCore.QSize(40, 16777215))
|
||||||
self.fan_lbl.setBaseSize(QtCore.QSize(40, 0))
|
self.fan_lbl.setBaseSize(QtCore.QSize(40, 0))
|
||||||
self.fan_lbl.setObjectName("fan_lbl")
|
|
||||||
self.gan_layout.addWidget(self.fan_lbl)
|
self.gan_layout.addWidget(self.fan_lbl)
|
||||||
self.fan_power_slider = QtWidgets.QSlider(parent=self.fan_group)
|
self.fan_power_slider = QtWidgets.QSlider(parent=self.fan_group)
|
||||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Expanding)
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
@ -314,7 +308,6 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||||
self.fan_power_slider.setMinimum(1)
|
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.gan_layout.addWidget(self.fan_power_slider)
|
self.gan_layout.addWidget(self.fan_power_slider)
|
||||||
self.fan_auto_box = QtWidgets.QCheckBox(parent=self.fan_group)
|
self.fan_auto_box = QtWidgets.QCheckBox(parent=self.fan_group)
|
||||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Expanding)
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
@ -324,12 +317,10 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||||
self.fan_auto_box.setSizePolicy(sizePolicy)
|
self.fan_auto_box.setSizePolicy(sizePolicy)
|
||||||
self.fan_auto_box.setMinimumSize(QtCore.QSize(70, 0))
|
self.fan_auto_box.setMinimumSize(QtCore.QSize(70, 0))
|
||||||
self.fan_auto_box.setMaximumSize(QtCore.QSize(70, 16777215))
|
self.fan_auto_box.setMaximumSize(QtCore.QSize(70, 16777215))
|
||||||
self.fan_auto_box.setObjectName("fan_auto_box")
|
|
||||||
self.gan_layout.addWidget(self.fan_auto_box)
|
self.gan_layout.addWidget(self.fan_auto_box)
|
||||||
self.fan_pwm_warning = QtWidgets.QLabel(parent=self.fan_group)
|
self.fan_pwm_warning = QtWidgets.QLabel(parent=self.fan_group)
|
||||||
self.fan_pwm_warning.setMinimumSize(QtCore.QSize(16, 0))
|
self.fan_pwm_warning.setMinimumSize(QtCore.QSize(16, 0))
|
||||||
self.fan_pwm_warning.setText("")
|
self.fan_pwm_warning.setText("")
|
||||||
self.fan_pwm_warning.setObjectName("fan_pwm_warning")
|
|
||||||
self.gan_layout.addWidget(self.fan_pwm_warning)
|
self.gan_layout.addWidget(self.fan_pwm_warning)
|
||||||
self.horizontalLayout_6.addLayout(self.gan_layout)
|
self.horizontalLayout_6.addLayout(self.gan_layout)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue