diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2010-02-16 15:26:58 +0100 |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2010-02-16 15:29:21 +0100 |
commit | ced28c7090e150d3d99ea43c927cfd84970cc2c6 (patch) | |
tree | b728445d84b23dad219c948992dc66bc603e44ec /src/plugins/qmljseditor | |
parent | 69e141c32f105e91f06b362e253fe76a2d3efc4f (diff) | |
download | qt-creator-ced28c7090e150d3d99ea43c927cfd84970cc2c6.tar.gz |
Use the fully qualified name when registering the SemanticInfos.
Both for CppEditor::Internal::SemanticInfo and QmlJSEditor::Internal::
SemanticInfo.
Diffstat (limited to 'src/plugins/qmljseditor')
-rw-r--r-- | src/plugins/qmljseditor/qmljseditor.cpp | 6 | ||||
-rw-r--r-- | src/plugins/qmljseditor/qmljseditor.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/qmljseditor/qmljseditor.cpp b/src/plugins/qmljseditor/qmljseditor.cpp index 319dc00955..924c45d351 100644 --- a/src/plugins/qmljseditor/qmljseditor.cpp +++ b/src/plugins/qmljseditor/qmljseditor.cpp @@ -564,7 +564,7 @@ QmlJSTextEditor::QmlJSTextEditor(QWidget *parent) : m_methodCombo(0), m_modelManager(0) { - qRegisterMetaType<SemanticInfo>("SemanticInfo"); + qRegisterMetaType<QmlJSEditor::Internal::SemanticInfo>("QmlJSEditor::Internal::SemanticInfo"); m_semanticHighlighter = new SemanticHighlighter(this); m_semanticHighlighter->start(); @@ -596,8 +596,8 @@ QmlJSTextEditor::QmlJSTextEditor(QWidget *parent) : this, SLOT(onDocumentUpdated(QmlJS::Document::Ptr))); } - connect(m_semanticHighlighter, SIGNAL(changed(SemanticInfo)), - this, SLOT(updateSemanticInfo(SemanticInfo))); + connect(m_semanticHighlighter, SIGNAL(changed(QmlJSEditor::Internal::SemanticInfo)), + this, SLOT(updateSemanticInfo(QmlJSEditor::Internal::SemanticInfo))); } QmlJSTextEditor::~QmlJSTextEditor() diff --git a/src/plugins/qmljseditor/qmljseditor.h b/src/plugins/qmljseditor/qmljseditor.h index 956684e1d2..dc8d93a300 100644 --- a/src/plugins/qmljseditor/qmljseditor.h +++ b/src/plugins/qmljseditor/qmljseditor.h @@ -175,7 +175,7 @@ public: void rehighlight(const Source &source); Q_SIGNALS: - void changed(const SemanticInfo &semanticInfo); + void changed(const QmlJSEditor::Internal::SemanticInfo &semanticInfo); protected: virtual void run(); @@ -228,7 +228,7 @@ private slots: void renameIdUnderCursor(); void semanticRehighlight(); - void updateSemanticInfo(const SemanticInfo &semanticInfo); + void updateSemanticInfo(const QmlJSEditor::Internal::SemanticInfo &semanticInfo); protected: void contextMenuEvent(QContextMenuEvent *e); |