diff options
author | Liang Qi <liang.qi@qt.io> | 2018-09-19 13:31:18 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2018-09-24 17:12:29 +0000 |
commit | b26cd68bf61346273a5a03bbc1e60a7cdffa4f0d (patch) | |
tree | 7580a1749931d86bfd67357d1be73355d6b7645e /src/corelib/tools/qlocale.h | |
parent | e226b0f94afc85f79d82fc54421487bf2a529ba5 (diff) |
Modernize the "datestring" feature
Change-Id: I2236a456fe3758d9054b22e36fe6316f3522d533
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/tools/qlocale.h')
-rw-r--r-- | src/corelib/tools/qlocale.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qlocale.h b/src/corelib/tools/qlocale.h index ef7a26ea79..681867d14a 100644 --- a/src/corelib/tools/qlocale.h +++ b/src/corelib/tools/qlocale.h @@ -1001,7 +1001,7 @@ public: QString dateFormat(FormatType format = LongFormat) const; QString timeFormat(FormatType format = LongFormat) const; QString dateTimeFormat(FormatType format = LongFormat) const; -#ifndef QT_NO_DATESTRING +#if QT_CONFIG(datestring) QDate toDate(const QString &string, FormatType = LongFormat) const; QTime toTime(const QString &string, FormatType = LongFormat) const; QDateTime toDateTime(const QString &string, FormatType format = LongFormat) const; |