qt5base-lts/tests/auto/corelib/time
Edward Welbourne 057329c24c Make feature datetimeparser depend on feature datestring
No client of QDateTimeParser actually uses it unless datestring was
enabled, nor is it any use without datestring. Various methods
conditioned on datestring are broken unless datetimeparser is enabled.
We can't condition public API on datetimeparser, as it's a private
feature, but client code can condition use of it on the private
feature. All string-to-date/time conversions that use a string format
(this includes all locale-specific formats) depend on feature
datetimeparser.

Change #if-ery (or add it) in all client (including test) code to test
the right feature.

Tidied up some code in the process. Killed some already-redundant
textdate #if-ery. Renamed a test whose name claimed it involved
locale, which it doesn't, in the course of #if-ing it.

This simplifies the condition for feature datetimeedit (which overtly
depended on textdate, redundantly since it depends on datestring which
depends on textdate; its dependence on datetimeparser now makes its
dependency on datestring also redundant).

It also removes the need for assorted datestring checks in
QDateTimeParser itself.

Change-Id: I5dfe3a977042134b2cfb16cbcc795070634e7adf
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2020-07-02 15:35:18 +02:00
..
qcalendar Merge remote-tracking branch 'origin/5.15' into dev 2020-02-13 18:31:40 +01:00
qdate Make feature datetimeparser depend on feature datestring 2020-07-02 15:35:18 +02:00
qdatetime Make feature datetimeparser depend on feature datestring 2020-07-02 15:35:18 +02:00
qtime Make feature datetimeparser depend on feature datestring 2020-07-02 15:35:18 +02:00
qtimezone Update tests/auto/corelib/time/'s CMake config 2020-07-02 15:35:17 +02:00
CMakeLists.txt Update tests/auto/corelib/time/'s CMake config 2020-07-02 15:35:17 +02:00
time.pro Make qtbase compile without QT_CONFIG(timezone) 2020-05-11 14:42:00 +03:00