[libcalamares] Repair tests that use deprecated QLocale functions

This commit is contained in:
Adriaan de Groot 2024-12-02 16:19:05 +01:00
parent 03c5e366ed
commit a87487020a

View File

@ -107,7 +107,11 @@ LocaleTests::testLanguageScripts()
QVERIFY( locale.language() == QLocale::Greek ? locale.script() == QLocale::GreekScript : true ); QVERIFY( locale.language() == QLocale::Greek ? locale.script() == QLocale::GreekScript : true );
QVERIFY( locale.language() == QLocale::Korean ? locale.script() == QLocale::KoreanScript : true ); QVERIFY( locale.language() == QLocale::Korean ? locale.script() == QLocale::KoreanScript : true );
#if QT_VERSION < QT_VERSION_CHECK( 6, 6, 0 )
QVERIFY( locale.language() == QLocale::Lithuanian ? locale.country() == QLocale::Lithuania : true ); QVERIFY( locale.language() == QLocale::Lithuanian ? locale.country() == QLocale::Lithuania : true );
#else
QVERIFY( locale.language() == QLocale::Lithuanian ? locale.territory() == QLocale::Lithuania : true );
#endif
QVERIFY( locale.language() != QLocale::C ); QVERIFY( locale.language() != QLocale::C );
} }
} }