From d7fc440ce3deafa2544645640390929760aaee77 Mon Sep 17 00:00:00 2001 From: maelstrom Date: Thu, 15 May 2025 20:58:31 +0200 Subject: [PATCH] fix: adjusted layout --- run-applet/runapplet.cpp | 1 + run-applet/runapplet.ui | 228 ++++++++++++++++++++++----------------- 2 files changed, 132 insertions(+), 97 deletions(-) diff --git a/run-applet/runapplet.cpp b/run-applet/runapplet.cpp index c970d0f..4607218 100644 --- a/run-applet/runapplet.cpp +++ b/run-applet/runapplet.cpp @@ -11,6 +11,7 @@ RunApplet::RunApplet(QWidget *parent) , ui(new Ui::RunApplet) { ui->setupUi(this); + setFixedSize(400, 175); restoreState(); diff --git a/run-applet/runapplet.ui b/run-applet/runapplet.ui index 76862db..11324c7 100644 --- a/run-applet/runapplet.ui +++ b/run-applet/runapplet.ui @@ -16,106 +16,140 @@ - - - - 12 - 21 - 38 - 38 - + + + 10 - - + + 15 - - - - - 63 - 21 - 320 - 42 - + + 10 - - Type the name of a program, folder, document, or Internet resource, and Windows will open it for you. - - - true - - - - - - 12 - 73 - 49 - 19 - - - - Open: - - - - - - 63 - 70 - 322 - 27 - - - - Qt::FocusPolicy::StrongFocus - - - true - - - - - - 300 - 132 - 88 - 34 - - - - &Browse... - - - - - - 204 - 132 - 88 - 34 - - - - Cancel - - - - - - 109 - 132 - 88 - 34 - - - - OK - - - true - - + + + + + QFormLayout::FieldGrowthPolicy::AllNonFixedFieldsGrow + + + Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignVCenter + + + 12 + + + + + + 42 + 42 + + + + + + + + + + + Open: + + + + + + + Qt::FocusPolicy::StrongFocus + + + true + + + QComboBox::InsertPolicy::InsertAtTop + + + + + + + Type the name of a program, folder, document, or Internet resource, and Windows will open it for you. + + + true + + + + + + + + + + Qt::Orientation::Vertical + + + + 20 + 40 + + + + + + + + + 0 + 50 + + + + + + + Qt::Orientation::Horizontal + + + + 40 + 20 + + + + + + + + OK + + + true + + + + + + + Cancel + + + + + + + &Browse... + + + + + + + + widget_2 + widget + verticalSpacer