QmlDesigner Fix for the BindingEditor

Change-Id: Ic0747bdd449a33ce7dd4b4094adfbbff259a4ee3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Aleksei German
2019-08-19 15:23:07 +02:00
parent 37a2bbe14e
commit 39e5cef301

View File

@@ -112,7 +112,9 @@ TextEditor::AssistInterface *BindingEditorWidget::createAssistInterface(TextEdit
class BindingDocument : public QmlJSEditor::QmlJSEditorDocument class BindingDocument : public QmlJSEditor::QmlJSEditorDocument
{ {
public: public:
BindingDocument() : m_semanticHighlighter(new QmlJSEditor::SemanticHighlighter(this)) {} BindingDocument()
: QmlJSEditor::QmlJSEditorDocument(BINDINGEDITOR_CONTEXT_ID)
, m_semanticHighlighter(new QmlJSEditor::SemanticHighlighter(this)) {}
~BindingDocument() { delete m_semanticHighlighter; } ~BindingDocument() { delete m_semanticHighlighter; }
protected: protected: