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(new Ui::RunApplet)
{ {
ui->setupUi(this); ui->setupUi(this);
setFixedSize(400, 175);
restoreState(); restoreState();

View file

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