Enable dynamic addition/removal of map types by the mapping manager
Map types are currently fixed in the constructor, regardless of whether
they were available, or, now, whether they are enabled or not.
This patch makes the geomappingmanager notify (e.g., emit a signal)
when the available map types change at runtime. This is used in the
OSM mappingmanagerengine, which can now disable map types if provider
records turn out to be invalid or disabled after they have been
fetched.
Change-Id: I8e0e75504c882609f91c6d1ceb88424eee656f26
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
| commit | e7099f14c8faea4fb7c89877973b7cec75044cb3 |
| parent | 75dd424e11964d8755abdb1b12b27a8479353b37 |
| author | Paolo Angelelli <paolo.angelelli@theqtcompany.com> |
| committer | Paolo Angelelli <paolo.angelelli@theqtcompany.com> |
| commit time | Fri, 29 Jul 2016 14:13:39 +0000 |
- M src/imports/location/qdeclarativegeomap.cpp
- M src/imports/location/qdeclarativegeomap_p.h
- M src/location/doc/src/plugins/osm.qdoc
- M src/location/maps/qgeomappingmanager.cpp
- M src/location/maps/qgeomappingmanager_p.h
- M src/location/maps/qgeomappingmanagerengine.cpp
- M src/location/maps/qgeomappingmanagerengine_p.h
- M src/plugins/geoservices/osm/qgeotiledmappingmanagerengineosm.cpp
- M src/plugins/geoservices/osm/qgeotiledmappingmanagerengineosm.h
- M src/plugins/geoservices/osm/qgeotilefetcherosm.cpp