diff options
author | Daniel Teske <daniel.teske@digia.com> | 2013-05-17 16:32:57 +0200 |
---|---|---|
committer | David Schulz <david.schulz@digia.com> | 2013-08-09 08:05:37 +0200 |
commit | f1eb9c4827670a56a5f772575d7f4a1d1f9cd26f (patch) | |
tree | fe68cfb3c1cf90a2e7b21952a96fecc571726c3b /src/plugins/texteditor/texteditoractionhandler.h | |
parent | 3e62b80bf9146e298516a0a64a1c74fece482d10 (diff) |
TextEditorActionHandler: Simplify code
Change-Id: I44f1859b6d91e20a2a15146c6587e4a51c70aa90
Reviewed-by: David Schulz <david.schulz@digia.com>
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Diffstat (limited to 'src/plugins/texteditor/texteditoractionhandler.h')
-rw-r--r-- | src/plugins/texteditor/texteditoractionhandler.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/plugins/texteditor/texteditoractionhandler.h b/src/plugins/texteditor/texteditoractionhandler.h index dd6e1cfe54..2e768b4b4e 100644 --- a/src/plugins/texteditor/texteditoractionhandler.h +++ b/src/plugins/texteditor/texteditoractionhandler.h @@ -43,6 +43,7 @@ QT_FORWARD_DECLARE_CLASS(QAction) namespace Core { class ICore; class IEditor; +class ActionContainer; } namespace TextEditor { @@ -79,9 +80,14 @@ public slots: protected: const QPointer<BaseTextEditorWidget> ¤tEditor() const; - QAction *registerNewAction(const Core::Id &id, bool scriptable = false, const QString &title = QString()); - QAction *registerNewAction(const Core::Id &id, QObject *receiver, const char *slot, bool scriptable = false, - const QString &title = QString()); + + QAction *registerAction(const Core::Id &id, + const char *slot, + bool scriptable = false, + const QString &title = QString(), + const QKeySequence &keySequence = QKeySequence(), + const char *menueGroup = 0, + Core::ActionContainer *container = 0); enum UpdateMode { ReadOnlyMode, WriteMode }; UpdateMode updateMode() const; |