diff options
author | hjk <qthjk@ovi.com> | 2013-01-15 13:52:34 +0100 |
---|---|---|
committer | Nicolas Arnaud-Cormos <nicolas@kdab.com> | 2013-01-15 21:32:10 +0100 |
commit | a31dd26e484f81564db98ce75bc3d874babc0a83 (patch) | |
tree | ad1079e5c9aeedae0b890b354583e1f341334a5f /src/plugins/macros/actionmacrohandler.h | |
parent | 14e4c19c2ce29b153c6655ff77e91a9e1c7c878c (diff) | |
download | qt-creator-a31dd26e484f81564db98ce75bc3d874babc0a83.tar.gz |
Macros: Use Core::Id instead of strings in some places
Change-Id: Ib6c23db2b6a37a2dfd831da76c15c6fba8113ff6
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
Diffstat (limited to 'src/plugins/macros/actionmacrohandler.h')
-rw-r--r-- | src/plugins/macros/actionmacrohandler.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/macros/actionmacrohandler.h b/src/plugins/macros/actionmacrohandler.h index 255d6b28e4..02db0fda63 100644 --- a/src/plugins/macros/actionmacrohandler.h +++ b/src/plugins/macros/actionmacrohandler.h @@ -32,10 +32,12 @@ #include "imacrohandler.h" +#include <coreplugin/id.h> +#include <coreplugin/actionmanager/actionmanager.h> + #include <QSet> QT_BEGIN_NAMESPACE -class QAction; class QSignalMapper; QT_END_NAMESPACE @@ -53,14 +55,15 @@ public: bool executeEvent(const MacroEvent ¯oEvent); private: - void registerCommand(const QString &id); + void registerCommand(Core::Id id); + Core::Command *command(const QString &id); private slots: void addCommand(const QString &id); void addActionEvent(const QString &id); private: - QSet<QString> m_commandIds; + QSet<Core::Id> m_commandIds; QSignalMapper *m_mapper; }; |