summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeomap_p_p.h
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@theqtcompany.com>2015-04-13 16:50:12 +0200
committerMichal Klocek <michal.klocek@theqtcompany.com>2015-05-05 13:03:04 +0000
commit4fb86e6d29a13d61ac04a302e4d312de349115f8 (patch)
tree1d8e2f55a555324b297520c783d973681415c894 /src/location/maps/qgeomap_p_p.h
parentcbe2583de456f18ddd2e4e5d2da225935aac1475 (diff)
downloadqtlocation-4fb86e6d29a13d61ac04a302e4d312de349115f8.tar.gz
Fixes PIMPL in QGeoTiledMap.
This commit makes following changes: * QGeoTiledMapPrivate is now a subclass of QGeoMapPrivate. * makes QGeoMap constructor private. * change visibility of setCameraData in QGeoMap, so that only QGeoMapController can modify the camera data. * moves mapResized,changeCameraData,changeActiveMapType to private implementation interface. * moves mapVersion member function to base class. Change-Id: I336e7f72b03e845e09e445a6eebad90b2e46dbd1 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/location/maps/qgeomap_p_p.h')
-rw-r--r--src/location/maps/qgeomap_p_p.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/location/maps/qgeomap_p_p.h b/src/location/maps/qgeomap_p_p.h
index 002711e3..c106adf8 100644
--- a/src/location/maps/qgeomap_p_p.h
+++ b/src/location/maps/qgeomap_p_p.h
@@ -67,6 +67,12 @@ public:
void setCameraData(const QGeoCameraData &cameraData);
void resize(int width, int height);
+
+protected:
+ virtual void mapResized(int width, int height) = 0;
+ virtual void changeCameraData(const QGeoCameraData &oldCameraData) = 0;
+ virtual void changeActiveMapType(const QGeoMapType mapType) = 0;
+
protected:
int m_width;
int m_height;