Condition inline fromString() definitions on datestring feature
Amends commit 41f84f3ddb780ec751e3fc706dd242fc4a99de7a - QDate and QDateTime declare fromString() methods only when feature datestring is enabled. So their inline implementations should also be conditioned on that feature. Change-Id: I84fc877001d3fc97c6ca149864e4ad5a2dbabe87 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 1618ff825c2198705fedde9c284a0c52bcce5b89) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 28911a81d4bc109c740919c3c952ef9096946d4d)
This commit is contained in:
parent
dbda7d2f8b
commit
63d6012b03
@ -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(QDate key, size_t seed = 0) noexcept;
|
||||||
Q_CORE_EXPORT size_t qHash(QTime 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)
|
QDate QDate::fromString(const QString &string, QStringView format, QCalendar cal)
|
||||||
{
|
{
|
||||||
return fromString(string, format, QLocale::DefaultTwoDigitBaseYear, cal);
|
return fromString(string, format, QLocale::DefaultTwoDigitBaseYear, cal);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user