OSDN Git Service

QmlJS: Set default import paths in constructor.
authorChristian Kamm <christian.d.kamm@nokia.com>
Thu, 9 Dec 2010 08:41:43 +0000 (09:41 +0100)
committerChristian Kamm <christian.d.kamm@nokia.com>
Thu, 9 Dec 2010 08:46:47 +0000 (09:46 +0100)
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
src/plugins/qmljstools/qmljsmodelmanager.cpp

index 0165eb6..8f9793c 100644 (file)
@@ -74,7 +74,7 @@ ModelManager::ModelManager(QObject *parent):
     loadQmlTypeDescriptions();
 
     m_defaultImportPaths << environmentImportPaths();
-    m_defaultImportPaths << QLibraryInfo::location(QLibraryInfo::ImportsPath);
+    updateImportPaths();
 }
 
 void ModelManager::loadQmlTypeDescriptions()