Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
ebe388ee
Commit
ebe388ee
authored
Jul 01, 2010
by
Kai Koehne
Browse files
QmlJSEditor: Signal that new semanticInfo is available
Will be used in QmlJSOutline.
parent
5649327a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmljseditor/qmljseditor.cpp
View file @
ebe388ee
...
...
@@ -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
()
...
...
src/plugins/qmljseditor/qmljseditor.h
View file @
ebe388ee
...
...
@@ -218,6 +218,9 @@ public slots:
void
followSymbolUnderCursor
();
virtual
void
setFontSettings
(
const
TextEditor
::
FontSettings
&
);
signals:
void
semanticInfoUpdated
(
const
QmlJSEditor
::
Internal
::
SemanticInfo
&
semanticInfo
);
private
slots
:
void
onDocumentUpdated
(
QmlJS
::
Document
::
Ptr
doc
);
void
modificationChanged
(
bool
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment