aboutsummaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2023-06-06 14:32:35 +0200
committerhjk <hjk@qt.io>2023-06-06 14:35:55 +0000
commit9db19c653cfecd7b1120ec52a3ddb2f6777e9a54 (patch)
treeec8703236b5ce3c219bb8ea0470e974de43fa869 /src/app
parent52db6f38f70d9db2ad78b75d2f80ea6af9d3d4bd (diff)
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>
Diffstat (limited to 'src/app')
-rw-r--r--src/app/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp
index 3a2cb5bfaa..ec40152292 100644
--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -647,7 +647,7 @@ int main(int argc, char **argv)
for (QString locale : std::as_const(uiLanguages)) {
locale = QLocale(locale).name();
if (translator.load("qtcreator_" + locale, creatorTrPath)) {
- const QString &qtTrPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
+ const QString &qtTrPath = QLibraryInfo::path(QLibraryInfo::TranslationsPath);
const QString &qtTrFile = QLatin1String("qt_") + locale;
// Binary installer puts Qt tr files into creatorTrPath
if (qtTranslator.load(qtTrFile, qtTrPath) || qtTranslator.load(qtTrFile, creatorTrPath)) {