forked from qt-creator/qt-creator
ICore: Change some path API to use FilePath
Change-Id: Id841d6177206a021c9e606ce560b47d1ae6e52b9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -220,15 +220,15 @@ void ModelManager::delayedInitialization()
|
||||
|
||||
ViewerContext qbsVContext;
|
||||
qbsVContext.language = Dialect::QmlQbs;
|
||||
qbsVContext.paths.append(ICore::resourcePath() + QLatin1String("/qbs"));
|
||||
qbsVContext.paths.append(ICore::resourcePath().pathAppended("qbs").toString());
|
||||
setDefaultVContext(qbsVContext);
|
||||
}
|
||||
|
||||
void ModelManager::loadDefaultQmlTypeDescriptions()
|
||||
{
|
||||
if (ICore::instance()) {
|
||||
loadQmlTypeDescriptionsInternal(ICore::resourcePath());
|
||||
loadQmlTypeDescriptionsInternal(ICore::userResourcePath());
|
||||
loadQmlTypeDescriptionsInternal(ICore::resourcePath().toString());
|
||||
loadQmlTypeDescriptionsInternal(ICore::userResourcePath().toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user