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:
@@ -191,9 +191,7 @@ public:
|
||||
|
||||
static QString customStylesPath()
|
||||
{
|
||||
QString path = Core::ICore::userResourcePath();
|
||||
path.append(QLatin1String("/styles/"));
|
||||
return path;
|
||||
return Core::ICore::userResourcePath().pathAppended("styles").toString();
|
||||
}
|
||||
|
||||
static QString createColorSchemeFileName(const QString &pattern)
|
||||
@@ -558,8 +556,7 @@ void FontSettingsPageWidget::refreshColorSchemeList()
|
||||
{
|
||||
QList<ColorSchemeEntry> colorSchemes;
|
||||
|
||||
QString resourcePath = Core::ICore::resourcePath();
|
||||
QDir styleDir(resourcePath + QLatin1String("/styles"));
|
||||
QDir styleDir(Core::ICore::resourcePath().pathAppended("styles").toDir());
|
||||
styleDir.setNameFilters(QStringList() << QLatin1String("*.xml"));
|
||||
styleDir.setFilter(QDir::Files);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user