From 4d00a198621d347fc5692c02b85c42b4a43b8dd5 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Tue, 5 Sep 2023 00:56:17 +0200 Subject: [PATCH] Small enhancements for macro editor dialog geometry --- src/lay/lay/MacroEditorDialog.ui | 24 +++++++++++++++++++++--- src/lay/lay/layMacroEditorPage.cc | 7 +++++-- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/src/lay/lay/MacroEditorDialog.ui b/src/lay/lay/MacroEditorDialog.ui index fa02c8421..5058a5440 100644 --- a/src/lay/lay/MacroEditorDialog.ui +++ b/src/lay/lay/MacroEditorDialog.ui @@ -463,6 +463,10 @@ ... + + + :/breakpoint_16px.png:/breakpoint_16px.png + F9 @@ -614,13 +618,20 @@ 40 - 20 + 16 - + + + + 0 + 0 + + + @@ -721,7 +732,14 @@ 0 - + + + + 0 + 0 + + + diff --git a/src/lay/lay/layMacroEditorPage.cc b/src/lay/lay/layMacroEditorPage.cc index bcb8c302f..b0980c315 100644 --- a/src/lay/lay/layMacroEditorPage.cc +++ b/src/lay/lay/layMacroEditorPage.cc @@ -549,13 +549,16 @@ MacroEditorPage::MacroEditorPage (QWidget * /*parent*/, MacroEditorHighlighters mp_layout = new QVBoxLayout (this); 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->setText (QObject::tr ("Macro is read-only and cannot be edited")); mp_readonly_label->hide (); - mp_layout->addWidget (mp_readonly_label); + vlayout->addWidget (mp_readonly_label); QHBoxLayout *hlayout = new QHBoxLayout (); - hlayout->setContentsMargins (4, 4, 4, 4); mp_layout->addLayout (hlayout); mp_exec_model = new MacroEditorExecutionModel (this);