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:
@@ -34,6 +34,8 @@
|
||||
#include <qmljstools/qmljssemanticinfo.h>
|
||||
#include <texteditor/basetextdocument.h>
|
||||
|
||||
#include <QTextLayout>
|
||||
|
||||
namespace QmlJSEditor {
|
||||
namespace Internal {
|
||||
|
||||
@@ -48,6 +50,8 @@ public:
|
||||
|
||||
const QmlJSTools::SemanticInfo &semanticInfo() const;
|
||||
bool isSemanticInfoOutdated() const;
|
||||
QVector<QTextLayout::FormatRange> diagnosticRanges() const;
|
||||
void setDiagnosticRanges(const QVector<QTextLayout::FormatRange> &ranges);
|
||||
|
||||
signals:
|
||||
void updateCodeWarnings(QmlJS::Document::Ptr doc);
|
||||
|
||||
Reference in New Issue
Block a user