qt6-bb10/tests/auto/corelib/time
Nicolas Fella 00d9a9a9b5 QIcuTimeZonePrivate constructor: save iteration over all zone IDs
ICU returns a "valid" representation of GMT when given an unrecognised
ID, so QTZ's constructor has been checking the ID is available before
passing it to the backend constructor. That availability check was
done by generating the list of available IDs to see if the given ID
was in it; this is very inefficient. Furthermore, the QTZ constructor
was also checking availability, to work round the same issue in only
this one backend, making the check redundant.

So overide isTimeZoneIdAvailable() in the ICU backend, calling
ucal_getCanonicalTimeZoneID(), which answers the question directly;
and drop the duplicate check in the QTZ constructor. Expand a test to
verify an invalid name is rejected.

Fixes: QTBUG-121807
Pick-to: 6.7 6.6 6.5
Change-Id: I34f996b607b958d12607a94eb273bb1b406cca1a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2024-02-08 15:40:03 +01:00
..
qcalendar Change license for tests files 2024-02-04 09:56:42 +01:00
qdate Change license for tests files 2024-02-04 09:56:42 +01:00
qdatetime Change license for tests files 2024-02-04 09:56:42 +01:00
qdatetimeparser Change license for tests files 2024-02-04 09:56:42 +01:00
qtime Change license for tests files 2024-02-04 09:56:42 +01:00
qtimezone QIcuTimeZonePrivate constructor: save iteration over all zone IDs 2024-02-08 15:40:03 +01:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00