From a70d14b5892ea0cd2f6f18bfba4d23f106c6decc Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Sat, 21 Nov 2020 13:42:27 +0100 Subject: [PATCH] Fix scaling of item editor margins on high DPI --- nw/gui/itemeditor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nw/gui/itemeditor.py b/nw/gui/itemeditor.py index a56a93bf..86c81768 100644 --- a/nw/gui/itemeditor.py +++ b/nw/gui/itemeditor.py @@ -124,8 +124,8 @@ class GuiItemEditor(QDialog): # Assemble self.mainForm = QGridLayout() - self.mainForm.setVerticalSpacing(4) - self.mainForm.setHorizontalSpacing(16) + self.mainForm.setVerticalSpacing(self.mainConf.pxInt(4)) + self.mainForm.setHorizontalSpacing(self.mainConf.pxInt(16)) self.mainForm.addWidget(QLabel("Label"), 0, 0, 1, 1) self.mainForm.addWidget(self.editName, 0, 1, 1, 2) self.mainForm.addWidget(QLabel("Status"), 1, 0, 1, 1)