From f190909f0802aa57f4f59c6bb3def175570331de Mon Sep 17 00:00:00 2001
From: octaeder <102688820+octaeder@users.noreply.github.com>
Date: Fri, 29 Dec 2023 14:13:04 +0100
Subject: [PATCH] reorder buttons in Edit Macros dialog (#3456)
---
src/usermenudialog.cpp | 3 ++-
src/usermenudialog.ui | 23 +++++++++++++----------
2 files changed, 15 insertions(+), 11 deletions(-)
diff --git a/src/usermenudialog.cpp b/src/usermenudialog.cpp
index 6494f6b057..1db2329c39 100644
--- a/src/usermenudialog.cpp
+++ b/src/usermenudialog.cpp
@@ -54,7 +54,6 @@ UserMenuDialog::UserMenuDialog(QWidget *parent, QString name, QLanguageFactory
connect(ui.pbImport,SIGNAL(clicked()), SLOT(importMacro()));
connect(ui.pbBrowse,SIGNAL(clicked()), SLOT(browseMacrosOnRepository()));
-
connect(ui.radioButtonNormal, SIGNAL(clicked()), SLOT(changeTypeToNormal()));
connect(ui.radioButtonEnvironment, SIGNAL(clicked()), SLOT(changeTypeToEnvironment()));
connect(ui.radioButtonScript, SIGNAL(clicked()), SLOT(changeTypeToScript()));
@@ -127,6 +126,8 @@ UserMenuDialog::UserMenuDialog(QWidget *parent, QString name, QLanguageFactory
connect(ui.triggerHelp, SIGNAL(linkActivated(QString)), SLOT(showTooltip()));
codeedit->editor()->clearFocus();
+ ui.pbBrowse->setFocus();
+
}
UserMenuDialog::~UserMenuDialog()
diff --git a/src/usermenudialog.ui b/src/usermenudialog.ui
index 406b21e8f0..d7e7fd0e4f 100644
--- a/src/usermenudialog.ui
+++ b/src/usermenudialog.ui
@@ -92,16 +92,6 @@
- -
-
-
- Browse offered macros on txs site.
-
-
- Browse
-
-
-
-
@@ -116,6 +106,9 @@
0
+
+ Export macro(s) to file(s)
+
Export
@@ -140,6 +133,16 @@
+ -
+
+
+ Browse offered macros on txs site.
+
+
+ Browse
+
+
+
-