Remove QDeclarativeGeoMapType wrapper
Register the QGeoMapType gadget directly as geoMapType (via a Foreign),
and adapt QDeclarativeGeoMap to use it, simplifying the code.
The type was uncreatable before, and is implicitly uncreatable as a
value type now as well.
QGeoMapType also needs to be registered as a namespace so that the
MapStyle enum is available in QML.
Pick-to: 6.2
Change-Id: Ibf0b26eb799005e4fabcbd5496d019da812c8d70
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
| commit | b6d3431ba621a1aabfd7d1ea3326bf503428a634 |
| parent | 76e21e0fd44b7841f1502eddf87147fa773685a0 |
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> |
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> |
| commit time | Fri, 9 Sep 2022 04:51:58 +0200 |
- M src/imports/location/location.cpp
- M src/imports/location/location.h
- M src/location/CMakeLists.txt
- M src/location/declarativemaps/qdeclarativegeomap.cpp
- M src/location/declarativemaps/qdeclarativegeomap_p.h
- D src/location/declarativemaps/qdeclarativegeomaptype.cpp
- D src/location/declarativemaps/qdeclarativegeomaptype_p.h
- M src/location/doc/src/plugins/osm.qdoc
- M src/location/maps/qgeomaptype.cpp