diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-10-04 23:46:58 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-10-06 13:28:06 +0200 |
commit | c40b5fdffaa4ff23c27974665eebdeacefa5b03a (patch) | |
tree | bfc33cf60fc5bb6afea4e374d2d13e454bf5e072 /src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp | |
parent | f92b88e99f2802f85af10e6e19c9c5e6800ee75c (diff) | |
download | qtlocation-c40b5fdffaa4ff23c27974665eebdeacefa5b03a.tar.gz |
Clean up: move code into right place, remove dead code
QGeoMapItemGeometry::geoDistanceToScreenWidth was unused, so remove it.
Move path/pathMercator projection helpers to QGeoMapItemGeometry, they
are used in items other than the rectangle items.
In mapbox plugin, call static helper from correct class.
Change-Id: I5645f503a24e23e295211da32e98f995b8c17b56
Reviewed-by: Ivan Solovev <ivan.solovev@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 581b05e2..c094d51b 100644 --- a/src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp +++ b/src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp @@ -97,7 +97,7 @@ QMapbox::Feature featureFromMapCircle(QDeclarativeCircleMapItem *mapItem) const QGeoProjectionWebMercator &p = static_cast<const QGeoProjectionWebMercator&>(mapItem->map()->geoProjection()); QList<QGeoCoordinate> path; QGeoCoordinate leftBound; - QDeclarativeCircleMapItemPrivateCPU::calculatePeripheralPoints(path, mapItem->center(), mapItem->radius(), circleSamples, leftBound); + QDeclarativeCircleMapItemPrivate::calculatePeripheralPoints(path, mapItem->center(), mapItem->radius(), circleSamples, leftBound); QList<QDoubleVector2D> pathProjected; for (const QGeoCoordinate &c : qAsConst(path)) pathProjected << p.geoToMapProjection(c); |