QmlJS: Set default import paths in constructor.

Also, remove the import path of the Qt that Creator was built with. It
might make things seem to work on built-from-source Creators that will
fail when Creator is shipped.

Reviewed-by: Erik Verbruggen
This commit is contained in:
Christian Kamm
2010-12-09 09:41:43 +01:00
parent 5d93717c81
commit e641bfbd9a

View File

@@ -74,7 +74,7 @@ ModelManager::ModelManager(QObject *parent):
loadQmlTypeDescriptions();
m_defaultImportPaths << environmentImportPaths();
m_defaultImportPaths << QLibraryInfo::location(QLibraryInfo::ImportsPath);
updateImportPaths();
}
void ModelManager::loadQmlTypeDescriptions()