diff options
author | Michal Klocek <michal.klocek@theqtcompany.com> | 2015-05-18 11:12:16 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@theqtcompany.com> | 2015-06-04 14:50:51 +0000 |
commit | 374077292b4be4a03eb8ca9a6eaae41e4de6f942 (patch) | |
tree | 2f56803b02c81337660743720745abe65e923114 /src/location/maps/qgeotiledmap_p_p.h | |
parent | 2d10f0a06c4aa99257cafb6729034f9f843fb31c (diff) | |
download | qtlocation-374077292b4be4a03eb8ca9a6eaae41e4de6f942.tar.gz |
Fix tile version handling
Here maps plugin checks server for tile version.
When tile version is updated, update not only
the current camera tiles, but also scene tiles.
Task-number: QTBUG-44809
Change-Id: Iedb3add5308a2e61cc18e169e33ea4510e1a4fee
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/location/maps/qgeotiledmap_p_p.h')
-rw-r--r-- | src/location/maps/qgeotiledmap_p_p.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/location/maps/qgeotiledmap_p_p.h b/src/location/maps/qgeotiledmap_p_p.h index bd4b4c05..95a61a2b 100644 --- a/src/location/maps/qgeotiledmap_p_p.h +++ b/src/location/maps/qgeotiledmap_p_p.h @@ -74,8 +74,6 @@ public: ~QGeoTiledMapPrivate(); QSGNode *updateSceneGraph(QSGNode *node, QQuickWindow *window); - - void changeMapVersion(int mapVersion); void resized(int width, int height); QGeoCoordinate itemPositionToCoordinate(const QDoubleVector2D &pos) const; @@ -88,6 +86,10 @@ protected: void mapResized(int width, int height) Q_DECL_OVERRIDE; void changeCameraData(const QGeoCameraData &oldCameraData) Q_DECL_OVERRIDE; void changeActiveMapType(const QGeoMapType mapType) Q_DECL_OVERRIDE; + void changeTileVersion(int version); + +private: + void updateScene(); private: QGeoTileCache *m_cache; |