summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBe <be@mixxx.org>2021-10-17 09:11:01 -0500
committerGitHub <noreply@github.com>2021-10-17 09:11:01 -0500
commitf83869ba543be61e9c084dfc8f6cbb578bfed61e (patch)
tree4e8ecfd43a8d98c28c2b151cd4af525e6dd1a576 /src
parent3249c18092a3793bc8c017da05e01b2e3e2c4e54 (diff)
parentb3362c0d3e040f25827e55a97653f1b6ac9a7b06 (diff)
Merge pull request #4451 from Be-ing/qlibraryinfo_path
fix QLibraryInfo::locations deprecation warning for Qt6
Diffstat (limited to 'src')
-rw-r--r--src/util/translations.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/translations.h b/src/util/translations.h
index 17b9b28f2a..bac70d1d9b 100644
--- a/src/util/translations.h
+++ b/src/util/translations.h
@@ -73,7 +73,11 @@ class Translations {
installTranslations(pApp,
locale,
QStringLiteral("qt"),
+#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
+ QLibraryInfo::path(QLibraryInfo::TranslationsPath),
+#else
QLibraryInfo::location(QLibraryInfo::TranslationsPath),
+#endif
true);
// Load Qt translations for this locale from the Mixxx translations