forked from qt-creator/qt-creator
JSON wizards: Read additional paths from settings
Opens possibilities like the installers writings some. Change-Id: Ie8c87731fb6bb9c7129032f64878e42e9bcf4cf0 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -513,6 +513,9 @@ FilePaths &JsonWizardFactory::searchPaths()
|
|||||||
Core::ICore::resourcePath(WIZARD_PATH)};
|
Core::ICore::resourcePath(WIZARD_PATH)};
|
||||||
for (const QString &environmentTemplateDirName : environmentTemplatesPaths())
|
for (const QString &environmentTemplateDirName : environmentTemplatesPaths())
|
||||||
m_searchPaths << FilePath::fromString(environmentTemplateDirName);
|
m_searchPaths << FilePath::fromString(environmentTemplateDirName);
|
||||||
|
m_searchPaths << Utils::transform(
|
||||||
|
Core::ICore::settings()->value("Wizards/SearchPaths").toStringList(),
|
||||||
|
[](const QString &s) { return FilePath::fromUserInput(s); });
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_searchPaths;
|
return m_searchPaths;
|
||||||
|
|||||||
Reference in New Issue
Block a user