diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2016-12-02 16:02:31 +0100 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-01-16 16:18:20 +0000 |
commit | 5504a4c00ec01fdbc95a862c9bc63a680095daee (patch) | |
tree | 5afa841903c4a55e2162a4ebfdb72f75df274944 /tests/auto/qgeotiledmap/tst_qgeotiledmap.cpp | |
parent | 8879bcdc41eb56aaf164d6b1e0d01b7aeceec460 (diff) | |
download | qtlocation-5504a4c00ec01fdbc95a862c9bc63a680095daee.tar.gz |
Rename QGeoProjection to QWebMercator
QGeoProjection is currently a class containing only static methods for
WebMercator conversion/interpolation.
This patch renames it to QWebMercator, effectively freeing the
QGeoProjection name for a real projection class
Change-Id: I15b71d04f7d1d21a1d26f46687ed33aa277f6deb
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'tests/auto/qgeotiledmap/tst_qgeotiledmap.cpp')
-rw-r--r-- | tests/auto/qgeotiledmap/tst_qgeotiledmap.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qgeotiledmap/tst_qgeotiledmap.cpp b/tests/auto/qgeotiledmap/tst_qgeotiledmap.cpp index cc2672b2..e4ecfae9 100644 --- a/tests/auto/qgeotiledmap/tst_qgeotiledmap.cpp +++ b/tests/auto/qgeotiledmap/tst_qgeotiledmap.cpp @@ -37,6 +37,7 @@ #include <QtCore/QString> #include <QtTest/QtTest> #include <QtTest/QSignalSpy> +#include <QtPositioning/private/qwebmercator_p.h> #include <QtLocation/QGeoServiceProvider> #include <QtLocation/private/qgeotiledmap_p.h> #include <QtLocation/private/qgeomappingmanager_p.h> @@ -126,7 +127,7 @@ void tst_QGeoTiledMap::fetchTiles() m_map->setPrefetchStyle(style); QGeoCameraData camera; - camera.setCenter(QGeoProjection::mercatorToCoord(QDoubleVector2D( 0.5 , 0.5 ))); + camera.setCenter(QWebMercator::mercatorToCoord(QDoubleVector2D( 0.5 , 0.5 ))); //prev_visible camera.setZoomLevel(zoomLevel-1); |