QmlJSEditor: Display code model warnings as annotations

Change-Id: Ief6ed8fe551846f5e788c14a49269231462ea40a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
This commit is contained in:
David Schulz
2017-11-15 15:01:54 +01:00
parent 5ef41157c7
commit b9d00c3f27
6 changed files with 234 additions and 2 deletions

View File

@@ -47,6 +47,8 @@ namespace QmlJS {
namespace AST { class UiObjectMember; }
}
namespace TextEditor { class TextMark; }
namespace QmlJSEditor {
class QmlJSEditorDocument;
@@ -127,6 +129,14 @@ private:
QmlJS::IContextPane *m_contextPane = nullptr;
int m_oldCursorPosition = -1;
void createTextMarks(const QList<QmlJS::DiagnosticMessage> &diagnostics);
void cleanDiagnosticMarks();
QVector<TextEditor::TextMark *> m_diagnosticMarks;
void createTextMarks(const QmlJSTools::SemanticInfo &info);
void cleanSemanticMarks();
QVector<TextEditor::TextMark *> m_semanticMarks;
FindReferences *m_findReferences;
};