summaryrefslogtreecommitdiff
path: root/src/location/quickmapitems/qgeomapitemgeometry_p.h
diff options
context:
space:
mode:
authorMatthias Rauter <matthias.rauter@qt.io>2023-01-26 17:18:50 +0100
committerMatthias Rauter <matthias.rauter@qt.io>2023-02-14 16:31:13 +0100
commit8b9ecad4bed0150adcbdf91db3f5f9507a156fd6 (patch)
tree6cd08872c366a32ed041701654d15559325fd464 /src/location/quickmapitems/qgeomapitemgeometry_p.h
parentb842a6cdcce0ee43a48ec084180d9dc065b599a1 (diff)
downloadqtlocation-8b9ecad4bed0150adcbdf91db3f5f9507a156fd6.tar.gz
Correct and improve the rendering of QuickMapItems
Various MapItems were not rendered correctly, especially in corner cases. This change ensures that MapItems are rendered correctly in the vast majority of cases. All MapItems are shown correctly if they wrap around the globe and appear twice on the map. Circles that span around the globe or are located near poles are shown correclty and filled all the way to the border of the map. Polygons are shown correctly including their holes. The code was simplified and some artefacts of previous implementations were removed. Fixes: QTBUG-110701 Fixes: QTBUG-110511 Pick-to: 6.5 Change-Id: I1110659989436cd5a93f6ec26f75caa06d5f2b71 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/location/quickmapitems/qgeomapitemgeometry_p.h')
-rw-r--r--src/location/quickmapitems/qgeomapitemgeometry_p.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/location/quickmapitems/qgeomapitemgeometry_p.h b/src/location/quickmapitems/qgeomapitemgeometry_p.h
index c7fd2f57..0fa90ae4 100644
--- a/src/location/quickmapitems/qgeomapitemgeometry_p.h
+++ b/src/location/quickmapitems/qgeomapitemgeometry_p.h
@@ -74,12 +74,6 @@ public:
inline void markClean() { screenDirty_ = (sourceDirty_ = false); clipToViewport_ = true;}
inline void clearScreen() { screenDirty_ = false; }
- inline void setPreserveGeometry(bool value, const QGeoCoordinate &geoLeftBound = QGeoCoordinate())
- {
- preserveGeometry_ = value;
- if (preserveGeometry_)
- geoLeftBound_ = geoLeftBound;
- }
inline QGeoCoordinate geoLeftBound() { return geoLeftBound_; }
inline QRectF sourceBoundingBox() const { return sourceBounds_; }