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:
@@ -88,7 +88,7 @@ QString findFallbackDefinitionsLocation()
|
||||
}
|
||||
}
|
||||
|
||||
dir.setPath(Core::ICore::resourcePath() + QLatin1String("/generic-highlighter"));
|
||||
dir.setPath(Core::ICore::resourcePath().pathAppended("generic-highlighter").toString());
|
||||
if (dir.exists() && !dir.entryInfoList().isEmpty())
|
||||
return dir.path();
|
||||
|
||||
@@ -165,8 +165,8 @@ void HighlighterSettings::assignDefaultIgnoredPatterns()
|
||||
|
||||
void HighlighterSettings::assignDefaultDefinitionsPath()
|
||||
{
|
||||
const QString &path =
|
||||
Core::ICore::userResourcePath() + QLatin1String("/generic-highlighter");
|
||||
const QString path
|
||||
= Core::ICore::userResourcePath().pathAppended("generic-highlighter").toString();
|
||||
if (QFile::exists(path) || QDir().mkpath(path))
|
||||
m_definitionFilesPath = path;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user