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:
@@ -336,11 +336,8 @@ static QStringList environmentTemplatesPaths()
|
||||
|
||||
Utils::FilePaths &JsonWizardFactory::searchPaths()
|
||||
{
|
||||
static Utils::FilePaths m_searchPaths = Utils::FilePaths()
|
||||
<< Utils::FilePath::fromString(Core::ICore::userResourcePath() + QLatin1Char('/') +
|
||||
QLatin1String(WIZARD_PATH))
|
||||
<< Utils::FilePath::fromString(Core::ICore::resourcePath() + QLatin1Char('/') +
|
||||
QLatin1String(WIZARD_PATH));
|
||||
static Utils::FilePaths m_searchPaths = {Core::ICore::userResourcePath() / WIZARD_PATH,
|
||||
Core::ICore::resourcePath() / WIZARD_PATH};
|
||||
for (const QString &environmentTemplateDirName : environmentTemplatesPaths())
|
||||
m_searchPaths << Utils::FilePath::fromString(environmentTemplateDirName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user