Skip to content

Commit

Permalink
reorder buttons in Edit Macros dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
octaeder committed Dec 29, 2023
1 parent c5799b2 commit fb9860e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
3 changes: 2 additions & 1 deletion src/usermenudialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down Expand Up @@ -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()
Expand Down
23 changes: 13 additions & 10 deletions src/usermenudialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,6 @@
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pbBrowse">
<property name="toolTip">
<string>Browse offered macros on txs site.</string>
</property>
<property name="text">
<string>Browse</string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="tbExport">
<property name="sizePolicy">
Expand All @@ -116,6 +106,9 @@
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>Export macro(s) to file(s)</string>
</property>
<property name="text">
<string>Export</string>
</property>
Expand All @@ -140,6 +133,16 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pbBrowse">
<property name="toolTip">
<string>Browse offered macros on txs site.</string>
</property>
<property name="text">
<string>Browse</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
Expand Down

0 comments on commit fb9860e

Please sign in to comment.