Remove extra horizontal layout

This commit is contained in:
atse 2023-08-18 10:55:52 +08:00
parent 59d26436f6
commit c10317bfdb
1 changed files with 1 additions and 5 deletions

View File

@ -281,10 +281,7 @@ 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.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.fan_group) self.gan_layout = QtWidgets.QHBoxLayout(self.fan_group)
self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_6.setSpacing(0)
self.gan_layout = QtWidgets.QHBoxLayout()
self.gan_layout.setSpacing(9) self.gan_layout.setSpacing(9)
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)
@ -321,7 +318,6 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
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.gan_layout.addWidget(self.fan_pwm_warning) self.gan_layout.addWidget(self.fan_pwm_warning)
self.horizontalLayout_6.addLayout(self.gan_layout)
self.fan_power_slider.valueChanged.connect(self.fan_set) self.fan_power_slider.valueChanged.connect(self.fan_set)
self.fan_auto_box.stateChanged.connect(self.fan_auto_set) self.fan_auto_box.stateChanged.connect(self.fan_auto_set)