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:
Eike Ziller
2014-01-29 14:10:43 +01:00
parent f1606a9f58
commit d653d600e0
7 changed files with 34 additions and 34 deletions

View File

@@ -514,5 +514,15 @@ bool QmlJSEditorDocument::isSemanticInfoOutdated() const
return m_d->m_semanticInfo.revision() != document()->revision();
}
QVector<QTextLayout::FormatRange> QmlJSEditorDocument::diagnosticRanges() const
{
return m_d->m_diagnosticRanges;
}
void QmlJSEditorDocument::setDiagnosticRanges(const QVector<QTextLayout::FormatRange> &ranges)
{
m_d->m_diagnosticRanges = ranges;
}
} // Internal
} // QmlJSEditor