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:
@@ -193,7 +193,7 @@ HelpPluginPrivate::HelpPluginPrivate()
|
||||
if (!locale.isEmpty()) {
|
||||
auto qtr = new QTranslator(this);
|
||||
auto qhelptr = new QTranslator(this);
|
||||
const QString creatorTrPath = ICore::resourcePath().pathAppended("translations").toString();
|
||||
const QString creatorTrPath = ICore::resourcePath("translations").toString();
|
||||
const QString qtTrPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
|
||||
const QString trFile = QLatin1String("assistant_") + locale;
|
||||
const QString helpTrFile = QLatin1String("qt_help_") + locale;
|
||||
|
||||
Reference in New Issue
Block a user