forked from qt-creator/qt-creator
Core: Add a default parameter to various ICore::*path functions
Saves some code on the user side. Change-Id: I32cd220b6e533f5497a1865f9c34ab9db4cfda79 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -191,7 +191,7 @@ public:
|
||||
|
||||
static QString customStylesPath()
|
||||
{
|
||||
return Core::ICore::userResourcePath().pathAppended("styles").toString();
|
||||
return Core::ICore::userResourcePath("styles").toString();
|
||||
}
|
||||
|
||||
static QString createColorSchemeFileName(const QString &pattern)
|
||||
@@ -556,7 +556,7 @@ void FontSettingsPageWidget::refreshColorSchemeList()
|
||||
{
|
||||
QList<ColorSchemeEntry> colorSchemes;
|
||||
|
||||
QDir styleDir(Core::ICore::resourcePath().pathAppended("styles").toDir());
|
||||
QDir styleDir(Core::ICore::resourcePath("styles").toDir());
|
||||
styleDir.setNameFilters(QStringList() << QLatin1String("*.xml"));
|
||||
styleDir.setFilter(QDir::Files);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user