Add qHash overloads to QGeoShape hierarchy
This patch adds qHash overloads to QGeoShape hierarchy, allowing to use
the classes as keys in QHash.
Note that the actual qHash overload is required only for the base type.
All the derived classes are correctly hashed using the virtual method
in private d_ptr.
Task-number: QTBUG-95163
Pick-to: 6.2
Change-Id: I186f9d396e698187ebf0363d96c19e324db10905
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
| commit | cc6d520ee633d15b18724e3b7e6ecff25570dd0d |
| parent | 8cdcf2533e5eba41f22c897bac670bd5ec9a636e |
| author | Ivan Solovev <ivan.solovev@qt.io> |
| committer | Ivan Solovev <ivan.solovev@qt.io> |
| commit time | Tue, 27 Jul 2021 16:39:45 +0200 |
- M src/positioning/qgeocircle.cpp
- M src/positioning/qgeocircle_p.h
- M src/positioning/qgeopath.cpp
- M src/positioning/qgeopath_p.h
- M src/positioning/qgeopolygon.cpp
- M src/positioning/qgeopolygon_p.h
- M src/positioning/qgeorectangle.cpp
- M src/positioning/qgeorectangle_p.h
- M src/positioning/qgeoshape.cpp
- M src/positioning/qgeoshape.h
- M src/positioning/qgeoshape_p.h
- M tests/auto/qgeocircle/tst_qgeocircle.cpp
- M tests/auto/qgeopath/tst_qgeopath.cpp
- M tests/auto/qgeopolygon/tst_qgeopolygon.cpp
- M tests/auto/qgeorectangle/tst_qgeorectangle.cpp
- M tests/auto/qgeoshape/tst_qgeoshape.cpp