Commit 872f7eb4 authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJS: Fix completion for enums on the global Qt object.

Reviewed-by: Erik Verbruggen
parent 9240ceaf
...@@ -2401,6 +2401,11 @@ Engine::Engine() ...@@ -2401,6 +2401,11 @@ Engine::Engine()
initializePrototypes(); initializePrototypes();
_cppQmlTypes.load(this, CppQmlTypesLoader::builtinObjects); _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
} }
Engine::~Engine() Engine::~Engine()
Markdown is supported
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