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