Commit ebe388ee authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlJSEditor: Signal that new semanticInfo is available

Will be used in QmlJSOutline.
parent 5649327a
......@@ -1354,6 +1354,8 @@ void QmlJSTextEditor::updateSemanticInfo(const SemanticInfo &semanticInfo)
appendExtraSelectionsForMessages(&selections, doc->diagnosticMessages(), document());
appendExtraSelectionsForMessages(&selections, m_semanticInfo.semanticMessages, document());
setExtraSelections(CodeWarningsSelection, selections);
emit semanticInfoUpdated(semanticInfo);
void QmlJSTextEditor::onCursorPositionChanged()
......@@ -218,6 +218,9 @@ public slots:
void followSymbolUnderCursor();
virtual void setFontSettings(const TextEditor::FontSettings &);
void semanticInfoUpdated(const QmlJSEditor::Internal::SemanticInfo &semanticInfo);
private slots:
void onDocumentUpdated(QmlJS::Document::Ptr doc);
void modificationChanged(bool);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment