diff options
author | Be <be@mixxx.org> | 2021-10-16 14:23:43 -0500 |
---|---|---|
committer | Be <be@mixxx.org> | 2021-10-16 14:23:43 -0500 |
commit | b3362c0d3e040f25827e55a97653f1b6ac9a7b06 (patch) | |
tree | 1c5948edccdcf82fe4068a6fd86194b6bc188fb1 /src | |
parent | 28be756b585f1c236e0c5c1850ce61358b68a349 (diff) |
fix QLibraryInfo::locations deprecation warning for Qt6
https://doc.qt.io/qt-6/qlibraryinfo-obsolete.html#location
Diffstat (limited to 'src')
-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 |