diff options
author | Mitch Curtis <mitch.curtis@nokia.com> | 2012-06-28 15:53:41 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-12 01:46:38 +0200 |
commit | 282d81e4e53c41f2b89a41c01e149ef484460df7 (patch) | |
tree | e37352a6057fa1cd13739d554483ce0351698d29 /src/corelib/tools/qdatetime.h | |
parent | 623bfe209371b6d35d030a66629b58f0f4f27b0d (diff) |
Write qHash functions for QDate, QTime and QDateTime.
These functions didn't exist - this patch implements them.
Task-number: QTBUG-23079
Change-Id: I9eb6e238531d5cda878f5f2cdd27bab30aa60669
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qdatetime.h')
-rw-r--r-- | src/corelib/tools/qdatetime.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/tools/qdatetime.h b/src/corelib/tools/qdatetime.h index 83c5ed8c2e..6880b7bad7 100644 --- a/src/corelib/tools/qdatetime.h +++ b/src/corelib/tools/qdatetime.h @@ -288,6 +288,10 @@ Q_CORE_EXPORT QDebug operator<<(QDebug, const QTime &); Q_CORE_EXPORT QDebug operator<<(QDebug, const QDateTime &); #endif +Q_CORE_EXPORT uint qHash(const QDateTime &key, uint seed = 0); +Q_CORE_EXPORT uint qHash(const QDate &key, uint seed = 0); +Q_CORE_EXPORT uint qHash(const QTime &key, uint seed = 0); + QT_END_NAMESPACE QT_END_HEADER |