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:
2026-06-23 19:37:33 +02:00
parent f035e1decd
commit a8ae6f2a65
2 changed files with 9 additions and 9 deletions
+5 -5
View File
@@ -3742,9 +3742,9 @@
<widget class="QPushButton" name="btn_pot_reset">
<property name="geometry">
<rect>
<x>700</x>
<x>880</x>
<y>500</y>
<width>220</width>
<width>70</width>
<height>31</height>
</rect>
</property>
@@ -3752,13 +3752,13 @@
<string>Only available when the server's Pot is simulated</string>
</property>
<property name="text">
<string>Pot reset to ambient temperature</string>
<string>Set</string>
</property>
</widget>
<widget class="QLabel" name="label_pot_temp">
<property name="geometry">
<rect>
<x>930</x>
<x>700</x>
<y>500</y>
<width>91</width>
<height>31</height>
@@ -3774,7 +3774,7 @@
<widget class="QDoubleSpinBox" name="doubleSpinBox_pot_temp">
<property name="geometry">
<rect>
<x>1030</x>
<x>800</x>
<y>500</y>
<width>70</width>
<height>31</height>
+4 -4
View File
@@ -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"))