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
Marco Bubke
flatpak-qt-creator
Commits
872f7eb4
Commit
872f7eb4
authored
Oct 19, 2010
by
Christian Kamm
Browse files
QmlJS: Fix completion for enums on the global Qt object.
Reviewed-by: Erik Verbruggen
parent
9240ceaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/qmljs/qmljsinterpreter.cpp
View file @
872f7eb4
...
...
@@ -2401,6 +2401,11 @@ Engine::Engine()
initializePrototypes
();
_cppQmlTypes
.
load
(
this
,
CppQmlTypesLoader
::
builtinObjects
);
// the 'Qt' object is dumped even though it is not exported
// it contains useful information, in particular on enums - add the
// object as a prototype to our custom Qt object to offer these for completion
_qtObject
->
setPrototype
(
_cppQmlTypes
.
typeForImport
(
QLatin1String
(
"Qt"
)));
}
Engine
::~
Engine
()
...
...
Write
Preview
Markdown
is supported
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