summaryrefslogtreecommitdiff
path: root/tests/auto/geotestplugin/qgeotiledmappingmanagerengine_test.h
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2017-04-07 10:58:46 +0200
committerPaolo Angelelli <paolo.angelelli@qt.io>2017-04-12 08:57:14 +0000
commitb82f9dd722e21fd7694221147dc0dccc94b2ad60 (patch)
treefd6fb5762108d93cfb9cdc3d5433d2a3b0ca0269 /tests/auto/geotestplugin/qgeotiledmappingmanagerengine_test.h
parent9aa7d2849d3e89f855c46296a6d4c27cfae8c8b8 (diff)
downloadqtlocation-b82f9dd722e21fd7694221147dc0dccc94b2ad60.tar.gz
Replace QGeoMapType argument of cameraCapabilities
Since the only part of QGeoMapType used in the method is mapId, there's no need to pass the whole map type as argument. The benefit is that the camera caps can be requested solely based on the info in QGeoTileSpec. Change-Id: Iafd0e2a1d4d45fbf02b862efe56841001cbebd75 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'tests/auto/geotestplugin/qgeotiledmappingmanagerengine_test.h')
-rw-r--r--tests/auto/geotestplugin/qgeotiledmappingmanagerengine_test.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/geotestplugin/qgeotiledmappingmanagerengine_test.h b/tests/auto/geotestplugin/qgeotiledmappingmanagerengine_test.h
index 01a4b61a..94d1420a 100644
--- a/tests/auto/geotestplugin/qgeotiledmappingmanagerengine_test.h
+++ b/tests/auto/geotestplugin/qgeotiledmappingmanagerengine_test.h
@@ -91,9 +91,9 @@ public:
return new QGeoTiledMapTest(this);
}
- QGeoCameraCapabilities cameraCapabilities(const QGeoMapType &mapType) const Q_DECL_OVERRIDE
+ QGeoCameraCapabilities cameraCapabilities(int mapId) const Q_DECL_OVERRIDE
{
- switch (mapType.mapId()) {
+ switch (mapId) {
case 4:
{
QGeoCameraCapabilities capabilities;
@@ -108,7 +108,7 @@ public:
return capabilities;
}
default:
- return QGeoMappingManagerEngine::cameraCapabilities(mapType);
+ return QGeoMappingManagerEngine::cameraCapabilities(mapId);
}
}