fix: adjusted layout

This commit is contained in:
maelstrom 2025-05-15 20:58:31 +02:00
parent 4db8bcff0e
commit d7fc440ce3
2 changed files with 132 additions and 97 deletions

View file

@ -11,6 +11,7 @@ RunApplet::RunApplet(QWidget *parent)
, ui(new Ui::RunApplet)
{
ui->setupUi(this);
setFixedSize(400, 175);
restoreState();

View file

@ -16,28 +16,63 @@
<property name="windowIcon">
<iconset theme="system-run-symbolic"/>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="leftMargin">
<number>10</number>
</property>
<property name="topMargin">
<number>15</number>
</property>
<property name="rightMargin">
<number>10</number>
</property>
<item>
<widget class="QWidget" name="widget_2" native="true">
<layout class="QFormLayout" name="formLayout">
<property name="fieldGrowthPolicy">
<enum>QFormLayout::FieldGrowthPolicy::AllNonFixedFieldsGrow</enum>
</property>
<property name="labelAlignment">
<set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignVCenter</set>
</property>
<property name="horizontalSpacing">
<number>12</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>12</x>
<y>21</y>
<width>38</width>
<height>38</height>
</rect>
<property name="minimumSize">
<size>
<width>42</width>
<height>42</height>
</size>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>63</x>
<y>21</y>
<width>320</width>
<height>42</height>
</rect>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Open:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="comboBox">
<property name="focusPolicy">
<enum>Qt::FocusPolicy::StrongFocus</enum>
</property>
<property name="editable">
<bool>true</bool>
</property>
<property name="insertPolicy">
<enum>QComboBox::InsertPolicy::InsertAtTop</enum>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Type the name of a program, folder, document, or Internet resource, and Windows will open it for you.</string>
</property>
@ -45,70 +80,47 @@
<bool>true</bool>
</property>
</widget>
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>12</x>
<y>73</y>
<width>49</width>
<height>19</height>
</rect>
</property>
<property name="text">
<string>Open:</string>
</property>
</item>
</layout>
</widget>
<widget class="QComboBox" name="comboBox">
<property name="geometry">
<rect>
<x>63</x>
<y>70</y>
<width>322</width>
<height>27</height>
</rect>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="focusPolicy">
<enum>Qt::FocusPolicy::StrongFocus</enum>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
<property name="editable">
<bool>true</bool>
</spacer>
</item>
<item>
<widget class="QWidget" name="widget" native="true">
<property name="minimumSize">
<size>
<width>0</width>
<height>50</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="browseBtn">
<property name="geometry">
<rect>
<x>300</x>
<y>132</y>
<width>88</width>
<height>34</height>
</rect>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="text">
<string>&amp;Browse...</string>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="cancelBtn">
<property name="geometry">
<rect>
<x>204</x>
<y>132</y>
<width>88</width>
<height>34</height>
</rect>
</property>
<property name="text">
<string>Cancel</string>
</property>
</widget>
</spacer>
</item>
<item>
<widget class="QPushButton" name="okBtn">
<property name="geometry">
<rect>
<x>109</x>
<y>132</y>
<width>88</width>
<height>34</height>
</rect>
</property>
<property name="text">
<string>OK</string>
</property>
@ -116,6 +128,28 @@
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="cancelBtn">
<property name="text">
<string>Cancel</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="browseBtn">
<property name="text">
<string>&amp;Browse...</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
<zorder>widget_2</zorder>
<zorder>widget</zorder>
<zorder>verticalSpacer</zorder>
</widget>
<resources/>
<connections/>