forked from qt-creator/qt-creator
TextEditorActionHandler: Simplify code
Change-Id: I44f1859b6d91e20a2a15146c6587e4a51c70aa90 Reviewed-by: David Schulz <david.schulz@digia.com> Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
committed by
David Schulz
parent
3e62b80bf9
commit
f1eb9c4827
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user