diff options
author | Lauri Laanmets <lauri.laanmets@eesti.ee> | 2021-09-30 16:06:43 +0300 |
---|---|---|
committer | Ivan Solovev <ivan.solovev@qt.io> | 2021-11-09 10:28:48 +0100 |
commit | 6ae370ac2e2a894f5181df9d5b027896812afaa5 (patch) | |
tree | 37b1d4e3f4d5fd7b9f16216bd8f323a38a337a46 /src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp | |
parent | b9f167d7aea56a1ea4b5cafb4bcda763bf7a0e5e (diff) | |
download | qtlocation-6ae370ac2e2a894f5181df9d5b027896812afaa5.tar.gz |
Change QGeoPolygon 'path' to 'perimeter'
https://doc.qt.io/qt-6/qtpositioning-changes-qt6.html#rename-qgeopolygon-path
This is part of a bigger work to port QtLocation maps to Qt6.
Task-number: QTBUG-96795
Change-Id: I34f27f7e21a3e4243b7fc08a93bc6e95d0541814
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Reviewed-by: Andreas Buhr <andreas.buhr@qt.io>
Diffstat (limited to 'src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp')
-rw-r--r-- | src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp b/src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp index 483f8f6d..520fedb3 100644 --- a/src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp +++ b/src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp @@ -135,7 +135,7 @@ QMapbox::Feature featureFromMapPolygon(QDeclarativePolygonMapItem *mapItem) const bool crossesDateline = geoRectangleCrossesDateLine(polygon->boundingGeoRectangle()); QMapbox::CoordinatesCollections geometry; QMapbox::CoordinatesCollection poly; - QMapbox::Coordinates coordinates = qgeocoordinate2mapboxcoordinate(polygon->path(), crossesDateline, true); + QMapbox::Coordinates coordinates = qgeocoordinate2mapboxcoordinate(polygon->perimeter(), crossesDateline, true); poly.push_back(coordinates); for (int i = 0; i < polygon->holesCount(); ++i) { coordinates = qgeocoordinate2mapboxcoordinate(polygon->holePath(i), crossesDateline, true); |