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

Reviewed-by: Erik Verbruggen
This commit is contained in:
Christian Kamm
2010-10-19 11:08:09 +02:00
parent 9240ceaf35
commit 872f7eb459

View File

@@ -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()