diff options
author | Be <be@mixxx.org> | 2021-10-17 09:11:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-17 09:11:01 -0500 |
commit | f83869ba543be61e9c084dfc8f6cbb578bfed61e (patch) | |
tree | 4e8ecfd43a8d98c28c2b151cd4af525e6dd1a576 | |
parent | 3249c18092a3793bc8c017da05e01b2e3e2c4e54 (diff) | |
parent | b3362c0d3e040f25827e55a97653f1b6ac9a7b06 (diff) |
Merge pull request #4451 from Be-ing/qlibraryinfo_path
fix QLibraryInfo::locations deprecation warning for Qt6
-rw-r--r-- | src/util/translations.h | 4 |
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 |