summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeomap_p.h
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@theqtcompany.com>2015-04-28 14:00:39 +0200
committerMichal Klocek <michal.klocek@theqtcompany.com>2015-05-21 08:13:17 +0000
commit3c674e0ec3fcbb1acebd27580ef005d7f6726719 (patch)
tree970902e2baa57b31bd2851ec1b987e4f70eeb4b1 /src/location/maps/qgeomap_p.h
parent52b887a8004029cf18942b5d16b1dcf396feabc0 (diff)
downloadqtlocation-3c674e0ec3fcbb1acebd27580ef005d7f6726719.tar.gz
Fix missing guarded pointers for mapping engine
Since mapping engine is going to be destroyed on geoseriveprovider change/plugin unload use QPointer to track engine existence before making calls. This commit refactors a bit QGeoTileRequestManager to handle all the calls to the enigne. Check for null pointer before calling the engine. Move registerMap method to base class. Update QGeoTiledMapNokia class accordingly. Change-Id: I886e85e660b2c515e4a617e98e9cc0c3c13781b6 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/location/maps/qgeomap_p.h')
-rw-r--r--src/location/maps/qgeomap_p.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/location/maps/qgeomap_p.h b/src/location/maps/qgeomap_p.h
index f2996a20..9e4d5a0d 100644
--- a/src/location/maps/qgeomap_p.h
+++ b/src/location/maps/qgeomap_p.h
@@ -88,7 +88,6 @@ public:
QString pluginString();
QGeoCameraCapabilities cameraCapabilities();
- QGeoMappingManagerEngine *engine();
protected:
QGeoMap(QGeoMapPrivate &dd, QObject *parent = 0);