Small enhancements for macro editor dialog geometry

This commit is contained in:
Matthias Koefferlein 2023-09-05 00:56:17 +02:00
parent 12f9ad33f4
commit 4d00a19862
2 changed files with 26 additions and 5 deletions

View File

@ -463,6 +463,10 @@
<property name="text"> <property name="text">
<string>...</string> <string>...</string>
</property> </property>
<property name="icon">
<iconset resource="../../icons/icons.qrc">
<normaloff>:/breakpoint_16px.png</normaloff>:/breakpoint_16px.png</iconset>
</property>
<property name="shortcut"> <property name="shortcut">
<string>F9</string> <string>F9</string>
</property> </property>
@ -614,13 +618,20 @@
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>16</height>
</size> </size>
</property> </property>
</spacer> </spacer>
</item> </item>
<item> <item>
<widget class="lay::DecoratedLineEdit" name="searchEditBox"/> <widget class="lay::DecoratedLineEdit" name="searchEditBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Ignored">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item> </item>
<item> <item>
<widget class="QToolButton" name="findNextButton"> <widget class="QToolButton" name="findNextButton">
@ -721,7 +732,14 @@
<number>0</number> <number>0</number>
</property> </property>
<item> <item>
<widget class="lay::DecoratedLineEdit" name="replaceText"/> <widget class="lay::DecoratedLineEdit" name="replaceText">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Ignored">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item> </item>
<item> <item>
<widget class="QToolButton" name="replaceNextButton"> <widget class="QToolButton" name="replaceNextButton">

View File

@ -549,13 +549,16 @@ MacroEditorPage::MacroEditorPage (QWidget * /*parent*/, MacroEditorHighlighters
mp_layout = new QVBoxLayout (this); mp_layout = new QVBoxLayout (this);
mp_layout->setContentsMargins (0, 0, 0, 0); mp_layout->setContentsMargins (0, 0, 0, 0);
QVBoxLayout *vlayout = new QVBoxLayout (this);
vlayout->setContentsMargins (4, 4, 4, 4);
mp_layout->addLayout (vlayout);
mp_readonly_label = new QLabel (this); mp_readonly_label = new QLabel (this);
mp_readonly_label->setText (QObject::tr ("Macro is read-only and cannot be edited")); mp_readonly_label->setText (QObject::tr ("Macro is read-only and cannot be edited"));
mp_readonly_label->hide (); mp_readonly_label->hide ();
mp_layout->addWidget (mp_readonly_label); vlayout->addWidget (mp_readonly_label);
QHBoxLayout *hlayout = new QHBoxLayout (); QHBoxLayout *hlayout = new QHBoxLayout ();
hlayout->setContentsMargins (4, 4, 4, 4);
mp_layout->addLayout (hlayout); mp_layout->addLayout (hlayout);
mp_exec_model = new MacroEditorExecutionModel (this); mp_exec_model = new MacroEditorExecutionModel (this);