mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 03:35:53 +01:00
Handle some more stuff obsolete in Qt6
This commit is contained in:
parent
d750715bed
commit
98704ef44b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user