diff options
author | Nicolas Arnaud-Cormos <nicolas@kdab.com> | 2011-02-07 11:34:01 +0100 |
---|---|---|
committer | con <qtc-committer@nokia.com> | 2011-02-07 14:26:10 +0100 |
commit | 23e024de640bd3d1983e655e2733e03ef8c0fa60 (patch) | |
tree | 94f8529360249393e22b30753d70098eb8e6674f /src/plugins/macros/macrosplugin.cpp | |
parent | 0444335aba148c1e02b34ecc84e646986abe638b (diff) | |
download | qt-creator-23e024de640bd3d1983e655e2733e03ef8c0fa60.tar.gz |
Add a save macro menu item, and remove the 'show save dialog' option in macro plugin
Merge-request: 240
Reviewed-by: con <qtc-committer@nokia.com>
Diffstat (limited to 'src/plugins/macros/macrosplugin.cpp')
-rw-r--r-- | src/plugins/macros/macrosplugin.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/macros/macrosplugin.cpp b/src/plugins/macros/macrosplugin.cpp index add7629d1f..fad8a3cd66 100644 --- a/src/plugins/macros/macrosplugin.cpp +++ b/src/plugins/macros/macrosplugin.cpp @@ -115,6 +115,12 @@ bool MacrosPlugin::initialize(const QStringList &arguments, QString *error_messa mmacrotools->addAction(command); connect(executeLastMacro, SIGNAL(triggered()), m_macroManager, SLOT(executeLastMacro())); + QAction *saveLastMacro = new QAction(tr("Save Last Macro"), this); + saveLastMacro->setEnabled(false); + command = am->registerAction(saveLastMacro, Constants::SAVE_LAST_MACRO, textContext); + mmacrotools->addAction(command); + connect(saveLastMacro, SIGNAL(triggered()), m_macroManager, SLOT(saveLastMacro())); + return true; } |