GUI: rename Pot reset button to "Set" and move it next to its spinbox
Now that doubleSpinBox_pot_temp carries the target temperature, the old "Pot reset to ambient temperature" label no longer described what the button does and reserved far more width than a short label needs. Shortened to "Set" and repositioned immediately to the right of the Pot [°C] label/spinbox it applies, with both shifted left to fill the space the long label used to need.
This commit is contained in:
@@ -1245,14 +1245,14 @@ class Ui_MainWindow(object):
|
||||
self.doubleSpinBox_ambient.setSingleStep(1.0)
|
||||
self.doubleSpinBox_ambient.setObjectName("doubleSpinBox_ambient")
|
||||
self.btn_pot_reset = QtWidgets.QPushButton(self.centralwidget)
|
||||
self.btn_pot_reset.setGeometry(QtCore.QRect(700, 500, 220, 31))
|
||||
self.btn_pot_reset.setGeometry(QtCore.QRect(880, 500, 70, 31))
|
||||
self.btn_pot_reset.setObjectName("btn_pot_reset")
|
||||
self.label_pot_temp = QtWidgets.QLabel(self.centralwidget)
|
||||
self.label_pot_temp.setGeometry(QtCore.QRect(930, 500, 91, 31))
|
||||
self.label_pot_temp.setGeometry(QtCore.QRect(700, 500, 91, 31))
|
||||
self.label_pot_temp.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.label_pot_temp.setObjectName("label_pot_temp")
|
||||
self.doubleSpinBox_pot_temp = QtWidgets.QDoubleSpinBox(self.centralwidget)
|
||||
self.doubleSpinBox_pot_temp.setGeometry(QtCore.QRect(1030, 500, 70, 31))
|
||||
self.doubleSpinBox_pot_temp.setGeometry(QtCore.QRect(800, 500, 70, 31))
|
||||
self.doubleSpinBox_pot_temp.setDecimals(0)
|
||||
self.doubleSpinBox_pot_temp.setMinimum(-999.0)
|
||||
self.doubleSpinBox_pot_temp.setMaximum(999.0)
|
||||
@@ -1331,7 +1331,7 @@ class Ui_MainWindow(object):
|
||||
self.label_ambient.setText(_translate("MainWindow", "Ambient [°C]"))
|
||||
self.doubleSpinBox_ambient.setToolTip(_translate("MainWindow", "Set the simulated/assumed ambient temperature"))
|
||||
self.btn_pot_reset.setToolTip(_translate("MainWindow", "Only available when the server\'s Pot is simulated"))
|
||||
self.btn_pot_reset.setText(_translate("MainWindow", "Pot reset to ambient temperature"))
|
||||
self.btn_pot_reset.setText(_translate("MainWindow", "Set"))
|
||||
self.label_pot_temp.setText(_translate("MainWindow", "Pot [°C]"))
|
||||
self.doubleSpinBox_pot_temp.setToolTip(_translate("MainWindow", "Pre-dial the temperature btn_pot_reset applies to the simulated Pot"))
|
||||
self.label_8.setText(_translate("MainWindow", "Host"))
|
||||
|
||||
Reference in New Issue
Block a user