Details
-
Suggestion
-
Resolution: Done
-
P2: Important
-
5.6.0 RC
-
None
Description
Not sure how https://bugreports.qt.io/browse/QTBUG-14263 affects this issue as there is a qHash(double) function now anyway.
So this propsal would not create a new problem.
e.g. (But I'm no expert!)
uint qHash(const QGeoCoordinate& c, uint seed = 0) { QtPrivate::QHashCombine hash; seed = hash(seed, c.latitude()); seed = hash(seed, c.longitude()); seed = hash(seed, c.altitude()); return seed; }
Attachments
For Gerrit Dashboard: QTBUG-51404 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
150933,3 | Add hash function for QGeoCoordinate | 5.7 | qt/qtlocation | Status: MERGED | +2 | 0 |