From 8b0afc8d2d4a1e6776f84bb77050e90fbc21d22a Mon Sep 17 00:00:00 2001 From: jupfi Date: Mon, 10 Jul 2023 16:29:58 +0200 Subject: [PATCH] Added layout. --- .../base_spectrometer_widget.py | 9 ++++----- .../resources/base_spectrometer_widget.ui | 16 +++++----------- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/src/nqrduck_spectrometer/base_spectrometer_widget.py b/src/nqrduck_spectrometer/base_spectrometer_widget.py index f9c6e3d..fbec072 100644 --- a/src/nqrduck_spectrometer/base_spectrometer_widget.py +++ b/src/nqrduck_spectrometer/base_spectrometer_widget.py @@ -13,12 +13,11 @@ class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(800, 647) - self.verticalLayoutWidget = QtWidgets.QWidget(parent=Form) - self.verticalLayoutWidget.setGeometry(QtCore.QRect(-1, -1, 811, 651)) - self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") - self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) - self.verticalLayout.setContentsMargins(0, 0, 0, 0) + self.horizontalLayout = QtWidgets.QHBoxLayout(Form) + self.horizontalLayout.setObjectName("horizontalLayout") + self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") + self.horizontalLayout.addLayout(self.verticalLayout) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) diff --git a/src/nqrduck_spectrometer/resources/base_spectrometer_widget.ui b/src/nqrduck_spectrometer/resources/base_spectrometer_widget.ui index 0d56c6e..ea3e7a3 100644 --- a/src/nqrduck_spectrometer/resources/base_spectrometer_widget.ui +++ b/src/nqrduck_spectrometer/resources/base_spectrometer_widget.ui @@ -13,17 +13,11 @@ Form - - - - -1 - -1 - 811 - 651 - - - - + + + + +