QmlJSEditor: Move ownership of QmlJSTextMarks to document

Task-number: QTCREATORBUG-19607
Change-Id: I65fa11b43dcbe3c28ab100a1636ad592cfff5a4d
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2018-01-22 10:45:04 +01:00
parent 63e47f903f
commit f9c959cee2
4 changed files with 69 additions and 70 deletions

View File

@@ -47,8 +47,6 @@ namespace QmlJS {
namespace AST { class UiObjectMember; }
}
namespace TextEditor { class TextMark; }
namespace QmlJSEditor {
class QmlJSEditorDocument;
@@ -129,14 +127,6 @@ 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;
};