diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py
index e1eb188..0469ca5 100644
--- a/pytec/tec_qt.py
+++ b/pytec/tec_qt.py
@@ -198,6 +198,18 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
self.menu = QtWidgets.QMenu()
self.menu.setTitle('Thermostat settings')
+ self.port_set_spin = QtWidgets.QSpinBox()
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.port_set_spin.sizePolicy().hasHeightForWidth())
+ self.port_set_spin.setSizePolicy(sizePolicy)
+ self.port_set_spin.setMinimumSize(QtCore.QSize(70, 0))
+ self.port_set_spin.setMaximumSize(QtCore.QSize(70, 16777215))
+ self.port_set_spin.setMaximum(65535)
+ self.port_set_spin.setProperty("value", 23)
+ self.port_set_spin.setObjectName("port_set_spin")
+
port = QtWidgets.QWidgetAction(self.menu)
port.setDefaultWidget(self.port_set_spin)
self.menu.addAction(port)
diff --git a/pytec/tec_qt.ui b/pytec/tec_qt.ui
index 1306beb..3782127 100644
--- a/pytec/tec_qt.ui
+++ b/pytec/tec_qt.ui
@@ -212,34 +212,6 @@
- -
-
-
-
- 0
- 0
-
-
-
-
- 70
- 0
-
-
-
-
- 70
- 16777215
-
-
-
- 65535
-
-
- 23
-
-
-
-
diff --git a/pytec/ui_tec_qt.py b/pytec/ui_tec_qt.py
index 10fe02e..9a7cb61 100644
--- a/pytec/ui_tec_qt.py
+++ b/pytec/ui_tec_qt.py
@@ -104,18 +104,6 @@ class Ui_MainWindow(object):
self.ip_set_line.setClearButtonEnabled(True)
self.ip_set_line.setObjectName("ip_set_line")
self.settings_layout.addWidget(self.ip_set_line)
- self.port_set_spin = QtWidgets.QSpinBox(parent=self.bottom_settings_group)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.port_set_spin.sizePolicy().hasHeightForWidth())
- self.port_set_spin.setSizePolicy(sizePolicy)
- self.port_set_spin.setMinimumSize(QtCore.QSize(70, 0))
- self.port_set_spin.setMaximumSize(QtCore.QSize(70, 16777215))
- self.port_set_spin.setMaximum(65535)
- self.port_set_spin.setProperty("value", 23)
- self.port_set_spin.setObjectName("port_set_spin")
- self.settings_layout.addWidget(self.port_set_spin)
self.connect_btn = QtWidgets.QPushButton(parent=self.bottom_settings_group)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0)