From a87487020a68827c2f5aa781613278c9b6697573 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 2 Dec 2024 16:19:05 +0100 Subject: [PATCH] [libcalamares] Repair tests that use deprecated QLocale functions --- src/libcalamares/locale/Tests.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libcalamares/locale/Tests.cpp b/src/libcalamares/locale/Tests.cpp index 45e9fc094..a2a33f30a 100644 --- a/src/libcalamares/locale/Tests.cpp +++ b/src/libcalamares/locale/Tests.cpp @@ -107,7 +107,11 @@ LocaleTests::testLanguageScripts() QVERIFY( locale.language() == QLocale::Greek ? locale.script() == QLocale::GreekScript : 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 ); +#else + QVERIFY( locale.language() == QLocale::Lithuanian ? locale.territory() == QLocale::Lithuania : true ); +#endif QVERIFY( locale.language() != QLocale::C ); } }