types.h
4.86 KB
-
Point, Map, PoiView: consistently use QPointF for animations · 4c56a8a7
Add a Point::toPixelF() method to avoid rounding discrepancies, and use it in Map and PoiView. This helps reducing the jagging of map movements. Also, when the animatedCenterUnit changes in the Map, treat the final point (animatedCenterUnit == requestedCenterUnit) as a special case, and optimize it so that setCenter() is called instead (and only once).
Alberto Mardegan committed