forked from qt-creator/qt-creator
All: Replace deprecated QLibraryInfo::location
... by QLibraryInfo::path() which exists since 6.0 Change-Id: I0e1e071e0d279ddaf1f1027a0e6ce350ab21739a Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -182,7 +182,7 @@ HelpPluginPrivate::HelpPluginPrivate()
|
||||
auto qtr = new QTranslator(this);
|
||||
auto qhelptr = new QTranslator(this);
|
||||
const QString creatorTrPath = ICore::resourcePath("translations").toString();
|
||||
const QString qtTrPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
|
||||
const QString qtTrPath = QLibraryInfo::path(QLibraryInfo::TranslationsPath);
|
||||
const QString trFile = QLatin1String("assistant_") + locale;
|
||||
const QString helpTrFile = QLatin1String("qt_help_") + locale;
|
||||
if (qtr->load(trFile, qtTrPath) || qtr->load(trFile, creatorTrPath))
|
||||
|
||||
Reference in New Issue
Block a user