diff options
Diffstat (limited to 'src/plugins/qmljseditor/qmljsmodelmanager.cpp')
-rw-r--r-- | src/plugins/qmljseditor/qmljsmodelmanager.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/qmljseditor/qmljsmodelmanager.cpp b/src/plugins/qmljseditor/qmljsmodelmanager.cpp index 6bbe8a0b7f..b6b3ffeb9d 100644 --- a/src/plugins/qmljseditor/qmljsmodelmanager.cpp +++ b/src/plugins/qmljseditor/qmljsmodelmanager.cpp @@ -80,7 +80,12 @@ ModelManager::ModelManager(QObject *parent): void ModelManager::loadQmlTypeDescriptions() { - const QString resourcePath = Core::ICore::instance()->resourcePath(); + loadQmlTypeDescriptions(Core::ICore::instance()->resourcePath()); + loadQmlTypeDescriptions(Core::ICore::instance()->userResourcePath()); +} + +void ModelManager::loadQmlTypeDescriptions(const QString &resourcePath) +{ const QDir typeFileDir(resourcePath + QLatin1String("/qml-type-descriptions")); const QStringList xmlExtensions = QStringList() << QLatin1String("*.xml"); const QFileInfoList xmlFiles = typeFileDir.entryInfoList(xmlExtensions, |