forked from qt-creator/qt-creator
QmlJS semantic highlighter: Use document instead of widget
Diagnostic ranges also move to document for this. Change-Id: I82a9909abb57594cdd732448270849e6a2e3a4e0 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
@@ -108,7 +108,6 @@ public:
|
||||
QmlJSTools::SemanticInfo semanticInfo() const;
|
||||
bool isSemanticInfoOutdated() const;
|
||||
int editorRevision() const;
|
||||
|
||||
QVector<QTextLayout::FormatRange> diagnosticRanges() const;
|
||||
|
||||
Internal::QmlOutlineModel *outlineModel() const;
|
||||
@@ -183,15 +182,12 @@ private:
|
||||
QmlJS::ModelManagerInterface *m_modelManager;
|
||||
|
||||
QList<TextEditor::QuickFixOperation::Ptr> m_quickFixes;
|
||||
QVector<QTextLayout::FormatRange> m_diagnosticRanges;
|
||||
|
||||
QmlJS::IContextPane *m_contextPane;
|
||||
int m_oldCursorPosition;
|
||||
|
||||
FindReferences *m_findReferences;
|
||||
Internal::SemanticHighlighter *m_semanticHighlighter;
|
||||
|
||||
friend class Internal::SemanticHighlighter;
|
||||
};
|
||||
|
||||
} // namespace QmlJSEditor
|
||||
|
||||
Reference in New Issue
Block a user