Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment