diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-02-14 18:20:40 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-05-08 09:50:51 +0200 |
commit | 5ba66c5622e9e0da87a5037399b375d7e8cee554 (patch) | |
tree | 0980be47e66b40c21afe10a4f3877fed145711a1 /src/corelib/global/qnamespace.h | |
parent | 48e5a375369fb56aeaa5b6c523a0f1c0ee962d8f (diff) |
Remove all locale-dependence from Q(Date|Time)+
[ChangeLog][Important Behavior Changes][QDateTime] Removed all
locale-dependence from QDate, QTime and QDateTime, including the
Qt::DateFormat members that select the formats of the default and
system locales and the toString(Qt::DateFormat, QCalendar) overload,
which only used its calendar for these formats. All toString()
methods now use, and all fromString() methods only recognize, the C
locale's names for days and months. Use QLocale's methods if you need
to take locale into account.
Fixes: QTBUG-80441
Change-Id: I3a8968438741afb00f44262f79659c51e9b06c35
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/global/qnamespace.h')
-rw-r--r-- | src/corelib/global/qnamespace.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h index 0dd48ef7fe..b367df0f11 100644 --- a/src/corelib/global/qnamespace.h +++ b/src/corelib/global/qnamespace.h @@ -1242,15 +1242,6 @@ namespace Qt { enum DateFormat { TextDate, // default Qt ISODate, // ISO 8601 -#if QT_DEPRECATED_SINCE(5, 15) - SystemLocaleDate Q_DECL_ENUMERATOR_DEPRECATED_X("Use QLocale"), - LocalDate Q_DECL_ENUMERATOR_DEPRECATED_X("Use QLocale") = 2, // i.e. SystemLocaleDate - LocaleDate Q_DECL_ENUMERATOR_DEPRECATED_X("Use QLocale"), - SystemLocaleShortDate Q_DECL_ENUMERATOR_DEPRECATED_X("Use QLocale"), - SystemLocaleLongDate Q_DECL_ENUMERATOR_DEPRECATED_X("Use QLocale"), - DefaultLocaleShortDate Q_DECL_ENUMERATOR_DEPRECATED_X("Use QLocale"), - DefaultLocaleLongDate Q_DECL_ENUMERATOR_DEPRECATED_X("Use QLocale"), -#endif RFC2822Date = 8, // RFC 2822 (+ 850 and 1036 during parsing) ISODateWithMs }; |