Condition inline fromString() definitions on datestring feature
Amends commit 41f84f3ddb - QDate and
QDateTime declare fromString() methods only when feature datestring is
enabled. So their inline implementations should also be conditioned on
that feature.
Pick-to: 6.7 6.7.0
Change-Id: I84fc877001d3fc97c6ca149864e4ad5a2dbabe87
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
parent
a643a956d4
commit
1618ff825c
|
|
@ -640,7 +640,7 @@ Q_CORE_EXPORT size_t qHash(const QDateTime &key, size_t seed = 0);
|
|||
Q_CORE_EXPORT size_t qHash(QDate key, size_t seed = 0) noexcept;
|
||||
Q_CORE_EXPORT size_t qHash(QTime key, size_t seed = 0) noexcept;
|
||||
|
||||
#if QT_CORE_INLINE_IMPL_SINCE(6, 7)
|
||||
#if QT_CONFIG(datestring) && QT_CORE_INLINE_IMPL_SINCE(6, 7)
|
||||
QDate QDate::fromString(const QString &string, QStringView format, QCalendar cal)
|
||||
{
|
||||
return fromString(string, format, QLocale::DefaultTwoDigitBaseYear, cal);
|
||||
|
|
|
|||
Loading…
Reference in New Issue