aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/designer
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/plugins/designer
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/plugins/designer')
-rw-r--r--src/plugins/designer/formeditorplugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/designer/formeditorplugin.cpp b/src/plugins/designer/formeditorplugin.cpp
index 881e6a30eb5..fd9a78187c5 100644
--- a/src/plugins/designer/formeditorplugin.cpp
+++ b/src/plugins/designer/formeditorplugin.cpp
@@ -86,7 +86,7 @@ void FormEditorPlugin::initialize()
if (!locale.isEmpty()) {
auto qtr = 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 = "designer_" + locale;
if (qtr->load(trFile, qtTrPath) || qtr->load(trFile, creatorTrPath))
QCoreApplication::installTranslator(qtr);