Commit f1eb9c48 authored by Daniel Teske's avatar Daniel Teske Committed by David Schulz

TextEditorActionHandler: Simplify code

Change-Id: I44f1859b6d91e20a2a15146c6587e4a51c70aa90
Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 3e62b80b
......@@ -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> &currentEditor() 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment