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>
| commit | 3c674e0ec3fcbb1acebd27580ef005d7f6726719 |
| parent | 52b887a8004029cf18942b5d16b1dcf396feabc0 |
| author | Michal Klocek <michal.klocek@theqtcompany.com> |
| committer | Michal Klocek <michal.klocek@theqtcompany.com> |
| commit time | Thu, 21 May 2015 08:13:17 +0000 |
- M src/location/maps/qgeomap.cpp
- M src/location/maps/qgeomap_p.h
- M src/location/maps/qgeomap_p_p.h
- M src/location/maps/qgeomappingmanagerengine_p.h
- M src/location/maps/qgeotiledmap.cpp
- M src/location/maps/qgeotiledmap_p.h
- M src/location/maps/qgeotiledmap_p_p.h
- M src/location/maps/qgeotiledmappingmanagerengine.cpp
- M src/location/maps/qgeotiledmappingmanagerengine_p.h
- M src/location/maps/qgeotilerequestmanager.cpp
- M src/location/maps/qgeotilerequestmanager_p.h
- M src/plugins/geoservices/nokia/qgeotiledmap_nokia.cpp
- M src/plugins/geoservices/nokia/qgeotiledmap_nokia.h