Add pluginName to QGeoMapType and check against it in setActiveMapType
This patch adds a QByteArray member to QGeoMapType with the name of
the plugin providing that map type.
This value is then used to validate what is passed to
QDeclarativeGeoMap::setActiveMapType to see if it's a map type for the
currently set plugin.
Change-Id: If15b67c32150f0c3c2815d28e26fc37138d4cf71
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
| commit | 1c29e3f36976134d1db3133d49ee3dc21eb1c07a |
| parent | acb1f42d21b94c4c783433c2e7d67646c905afb7 |
| author | Paolo Angelelli <paolo.angelelli@qt.io> |
| committer | Jani Heikkinen <jani.heikkinen@qt.io> |
| commit time | Sun, 7 May 2017 07:02:12 +0000 |
- M src/location/declarativemaps/qdeclarativegeomap.cpp
- M src/location/maps/qgeomaptype.cpp
- M src/location/maps/qgeomaptype_p.h
- M src/location/maps/qgeomaptype_p_p.h
- M src/plugins/geoservices/esri/geomapsource.cpp
- M src/plugins/geoservices/esri/geotiledmappingmanagerengine_esri.cpp
- M src/plugins/geoservices/itemsoverlay/qgeomappingmanagerengineitemsoverlay.cpp
- M src/plugins/geoservices/mapbox/qgeotiledmappingmanagerenginemapbox.cpp
- M src/plugins/geoservices/mapboxgl/qgeomappingmanagerenginemapboxgl.cpp
- M src/plugins/geoservices/nokia/qgeotiledmappingmanagerengine_nokia.cpp
- M src/plugins/geoservices/osm/qgeotiledmappingmanagerengineosm.cpp
- M tests/auto/geotestplugin/qgeotiledmappingmanagerengine_test.h
- M tests/auto/maptype/tst_maptype.cpp
- M tests/auto/qgeocameratiles/tst_qgeocameratiles.cpp