diff options
author | Nicolas Arnaud-Cormos <[email protected]> | 2011-01-24 11:39:42 +0100 |
---|---|---|
committer | Tobias Hunger <[email protected]> | 2011-01-24 11:39:42 +0100 |
commit | 1f1656163cea078ba09cbba80ead2758d7ca5dc0 (patch) | |
tree | ae39139a3f8bca5dc1cd63ff01873e876cbdb616 /src/plugins/macros/macro.h | |
parent | f3d7bbff0c2abcd8dd1efc8d3578cf3b865292a8 (diff) |
Refactor the shortcut management for plugin macros
When saving a macro, a shortcut is created and the user can change the
shortcut in Options->Keyboard.
When the macro is removed, the shortcut is removed from the
actionManager using the removeShortcut method.
This is way simpler than before, where a number of default shortcuts
where defined and macros took the empty space.
Merge-request: 236
Reviewed-by: Tobias Hunger <[email protected]>
Diffstat (limited to 'src/plugins/macros/macro.h')
-rw-r--r-- | src/plugins/macros/macro.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/plugins/macros/macro.h b/src/plugins/macros/macro.h index dc8fa0d9c52..8e85a97b530 100644 --- a/src/plugins/macros/macro.h +++ b/src/plugins/macros/macro.h @@ -34,6 +34,13 @@ #ifndef MACROSPLUGIN_MACRO_H #define MACROSPLUGIN_MACRO_H +#include <coreplugin/uniqueidmanager.h> + +#include <QList> +#include <QString> +#include <QShortcut> + +#include "macroevent.h" #include "macros_global.h" #include "macroevent.h" @@ -64,9 +71,6 @@ public: void append(const MacroEvent &event); const QList<MacroEvent> &events() const; - void setShortcutId(int id); - int shortcutId() const; - bool isWritable() const; private: |