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:
@@ -132,7 +132,7 @@ void GeneralSettingsWidget::fillLanguageBox() const
|
||||
if (currentLocale == QLatin1String("C"))
|
||||
m_ui.languageBox->setCurrentIndex(m_ui.languageBox->count() - 1);
|
||||
|
||||
const FilePath creatorTrPath = ICore::resourcePath() / "translations";
|
||||
const FilePath creatorTrPath = ICore::resourcePath("translations");
|
||||
const QStringList languageFiles = creatorTrPath.toDir().entryList(
|
||||
QStringList(QLatin1String("qtcreator*.qm")));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user