diff options
author | hjk <hjk121@nokiamail.com> | 2014-09-01 12:54:03 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2014-09-01 15:34:16 +0200 |
commit | c587f0b241efed7ea9d301aedb3fddbc3afbb3d9 (patch) | |
tree | 83466d9fc9994af20f9af3ea60eaab79cf04263b /src/libs/qmljs/qmljsicontextpane.h | |
parent | a59fdc8096061f5feee2d5d4ff7ae1d9fd2fc723 (diff) | |
download | qt-creator-c587f0b241efed7ea9d301aedb3fddbc3afbb3d9.tar.gz |
QmlJSEditor: Use EditorWidget instead of Editor in QuickToolBar
This reduces the use of the 'editor()' "back link" which we'd like
to phase out (and also actually simplifies the user code).
Change-Id: I8aa13e88459d4e9cf44de683e8efd189238cc684
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
Diffstat (limited to 'src/libs/qmljs/qmljsicontextpane.h')
-rw-r--r-- | src/libs/qmljs/qmljsicontextpane.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libs/qmljs/qmljsicontextpane.h b/src/libs/qmljs/qmljsicontextpane.h index 8f9cd7271a..1f32cc1c12 100644 --- a/src/libs/qmljs/qmljsicontextpane.h +++ b/src/libs/qmljs/qmljsicontextpane.h @@ -37,7 +37,7 @@ #include <qmljs/qmljsdocument.h> #include <qmljs/parser/qmljsastfwd_p.h> -namespace TextEditor { class BaseTextEditor; } +namespace TextEditor { class BaseTextEditorWidget; } namespace QmlJS { @@ -50,9 +50,9 @@ class QMLJS_EXPORT IContextPane : public QObject public: IContextPane(QObject *parent = 0) : QObject(parent) {} virtual ~IContextPane() {} - virtual void apply(TextEditor::BaseTextEditor *editor, Document::Ptr document, const ScopeChain *scopeChain, AST::Node *node, bool update, bool force = false) = 0; + virtual void apply(TextEditor::BaseTextEditorWidget *editorWidget, Document::Ptr document, const ScopeChain *scopeChain, AST::Node *node, bool update, bool force = false) = 0; virtual void setEnabled(bool) = 0; - virtual bool isAvailable(TextEditor::BaseTextEditor *editor, Document::Ptr document, AST::Node *node) = 0; + virtual bool isAvailable(TextEditor::BaseTextEditorWidget *editorWidget, Document::Ptr document, AST::Node *node) = 0; virtual QWidget* widget() = 0; signals: void closed(); |