diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2020-09-07 15:57:15 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2020-09-15 02:46:40 +0200 |
commit | fb65b32d7621f065ec854f1e72828720bffb3b39 (patch) | |
tree | 7f8bc479ddc552a654f91d998d701f1bbf496d76 /tests/auto/corelib/tools | |
parent | 9815ebf24b5aa148a416ee3b159088f0092d2715 (diff) |
Add qHash implementation for QPoint
[ChangeLog][QtCore][QPoint] Added qHash() implementation.
Change-Id: I65332e7aafab53af40a6e11457b9b457196d584c
Fixes: QTBUG-86457
Reviewed-by: Thorbjørn Lindeijer <bjorn@lindeijer.nl>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/tools')
-rw-r--r-- | tests/auto/corelib/tools/qpoint/tst_qpoint.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/corelib/tools/qpoint/tst_qpoint.cpp b/tests/auto/corelib/tools/qpoint/tst_qpoint.cpp index f25492d2db..0f3edb3eed 100644 --- a/tests/auto/corelib/tools/qpoint/tst_qpoint.cpp +++ b/tests/auto/corelib/tools/qpoint/tst_qpoint.cpp @@ -346,6 +346,9 @@ void tst_QPoint::operator_eq() QCOMPARE(equal, expectEqual); bool notEqual = point1 != point2; QCOMPARE(notEqual, !expectEqual); + + if (equal) + QCOMPARE(qHash(point1), qHash(point2)); } #ifndef QT_NO_DATASTREAM |