1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 06:43:22 +02:00

Handle some more stuff obsolete in Qt6

This commit is contained in:
Martin Tůma 2024-06-06 01:10:43 +02:00
parent d750715bed
commit 98704ef44b

View File

@ -43,8 +43,13 @@ App::App(int &argc, char **argv) : QApplication(argc, argv)
#if defined(Q_OS_WIN32) || defined(Q_OS_MAC)
if (qt->load(QLocale::system(), "qt", "_", ProgramPaths::translationsDir()))
#else // Q_OS_WIN32 || Q_OS_MAC
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
if (qt->load(QLocale::system(), "qt", "_", QLibraryInfo::location(
QLibraryInfo::TranslationsPath)))
#else // QT 6
if (qt->load(QLocale::system(), "qt", "_", QLibraryInfo::path(
QLibraryInfo::TranslationsPath)))
#endif // QT 6
#endif // Q_OS_WIN32 || Q_OS_MAC
installTranslator(qt);