From b3362c0d3e040f25827e55a97653f1b6ac9a7b06 Mon Sep 17 00:00:00 2001 From: Be Date: Sat, 16 Oct 2021 14:23:43 -0500 Subject: fix QLibraryInfo::locations deprecation warning for Qt6 https://doc.qt.io/qt-6/qlibraryinfo-obsolete.html#location --- src/util/translations.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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 -- cgit v1.2.3