From cc1fdddddaf03642942c18d498e0cb7db2d3066b Mon Sep 17 00:00:00 2001 From: atse Date: Wed, 26 Jul 2023 13:17:59 +0800 Subject: [PATCH] Space out bottom bar properly --- pytec/tec_qt.ui | 13 +++++++++++++ pytec/ui_tec_qt.py | 2 ++ 2 files changed, 15 insertions(+) diff --git a/pytec/tec_qt.ui b/pytec/tec_qt.ui index 521780d..1306beb 100644 --- a/pytec/tec_qt.ui +++ b/pytec/tec_qt.ui @@ -312,6 +312,19 @@ + + + + Qt::Horizontal + + + + 40 + 20 + + + + diff --git a/pytec/ui_tec_qt.py b/pytec/ui_tec_qt.py index 026986f..10fe02e 100644 --- a/pytec/ui_tec_qt.py +++ b/pytec/ui_tec_qt.py @@ -143,6 +143,8 @@ class Ui_MainWindow(object): self.thermostat_settings.setPopupMode(QtWidgets.QToolButton.ToolButtonPopupMode.InstantPopup) self.thermostat_settings.setObjectName("thermostat_settings") self.settings_layout.addWidget(self.thermostat_settings) + spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) + self.settings_layout.addItem(spacerItem) self.report_group = QtWidgets.QWidget(parent=self.bottom_settings_group) self.report_group.setEnabled(False) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)