Skip to content
GitLab
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
02cc2177
Commit
02cc2177
authored
Jun 10, 2010
by
Christian Kamm
Browse files
QmlJS: Add completion for "id:".
parent
45415783
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmljseditor/qmljscodecompletion.cpp
View file @
02cc2177
...
...
@@ -716,6 +716,12 @@ int CodeCompletion::startCompletion(TextEditor::ITextEditable *editor)
enumerateProperties
.
setGlobalCompletion
(
true
);
enumerateProperties
.
setEnumerateGeneratedSlots
(
true
);
// id: is special
TextEditor
::
CompletionItem
idPropertyCompletion
(
this
);
idPropertyCompletion
.
text
=
QLatin1String
(
"id: "
);
idPropertyCompletion
.
icon
=
symbolIcon
;
m_completions
.
append
(
idPropertyCompletion
);
addCompletionsPropertyLhs
(
enumerateProperties
(
qmlScopeType
),
symbolIcon
);
addCompletions
(
enumerateProperties
(
context
.
scopeChain
().
qmlTypes
),
symbolIcon
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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