diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-07-07 17:52:02 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-07-07 17:52:46 +0200 |
commit | ef5aaa036874ddb67e0d28d16c80efe014952efa (patch) | |
tree | 89e7268c6913c493c9c3186cd6e7c10d3ef71d7c /src/plugins/qmljseditor/qmljseditor.cpp | |
parent | d532180b3c8396904fb366e45817b1449fa0d4c8 (diff) | |
download | qt-creator-ef5aaa036874ddb67e0d28d16c80efe014952efa.tar.gz |
Renamed QmlJS::Document::documentRevision().
Diffstat (limited to 'src/plugins/qmljseditor/qmljseditor.cpp')
-rw-r--r-- | src/plugins/qmljseditor/qmljseditor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/qmljseditor/qmljseditor.cpp b/src/plugins/qmljseditor/qmljseditor.cpp index c59eb5fa93..5a6eee9ffc 100644 --- a/src/plugins/qmljseditor/qmljseditor.cpp +++ b/src/plugins/qmljseditor/qmljseditor.cpp @@ -558,7 +558,7 @@ AST::Node *SemanticInfo::nodeUnderCursor(int pos) const int SemanticInfo::revision() const { if (document) - return document->documentRevision(); + return document->editorRevision(); return 0; } @@ -767,7 +767,7 @@ static void appendExtraSelectionsForMessages( void QmlJSTextEditor::onDocumentUpdated(QmlJS::Document::Ptr doc) { if (file()->fileName() != doc->fileName() - || doc->documentRevision() != document()->revision()) { + || doc->editorRevision() != document()->revision()) { // didn't get the currently open, or an up to date document. // trigger a semantic rehighlight anyway, after a time m_semanticRehighlightTimer->start(); @@ -1468,7 +1468,7 @@ SemanticInfo SemanticHighlighter::semanticInfo(const Source &source) if (! doc) { snapshot = source.snapshot; doc = snapshot.documentFromSource(source.code, source.fileName); - doc->setDocumentRevision(source.revision); + doc->setEditorRevision(source.revision); doc->parse(); } |