summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeomap.cpp
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 /src/location/maps/qgeomap.cpp
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 'src/location/maps/qgeomap.cpp')
-rw-r--r--src/location/maps/qgeomap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/location/maps/qgeomap.cpp b/src/location/maps/qgeomap.cpp
index 2419b79a..0c6ce0a7 100644
--- a/src/location/maps/qgeomap.cpp
+++ b/src/location/maps/qgeomap.cpp
@@ -110,7 +110,7 @@ void QGeoMap::setActiveMapType(const QGeoMapType type)
if (type == d->m_activeMapType)
return;
d->m_activeMapType = type;
- d->setCameraCapabilities(d->m_engine->cameraCapabilities(type)); // emits
+ d->setCameraCapabilities(d->m_engine->cameraCapabilities(type.mapId())); // emits
d->changeActiveMapType(type);
emit activeMapTypeChanged();
}
@@ -238,7 +238,7 @@ QGeoMapPrivate::QGeoMapPrivate(QGeoMappingManagerEngine *engine, QGeoProjection
{
// Setting the default camera caps without emitting anything
if (engine)
- m_cameraCapabilities = m_engine->cameraCapabilities(m_activeMapType);
+ m_cameraCapabilities = m_engine->cameraCapabilities(m_activeMapType.mapId());
}
QGeoMapPrivate::~QGeoMapPrivate()