Remove QDeclarativeGeoRouteSegment wrapper
Register the QGeoRouteSegment gadget type directly as the routeSegment
QML type (via a Foreign), and use it in QDeclarativeGeoRoute.
The type is now uncreatable. It wasn't in 5.15, but since there is no
setter-API that is exposed to QML, there is no reason to have it be a
creatable type. Adjust the QML test to declare a property of type
routeSegment instead.
Move the QML type documentation into QGeoRouteSegment, and document the
corresponding C++ properties via \property. Unify the language a bit,
and follow up on the rename from RouteSegment to routeSegment.
Pick-to: 6.2
Change-Id: I1ebae0c1a9d056aa59510a3ab539b1d8bce8c6c7
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
| commit | 76e21e0fd44b7841f1502eddf87147fa773685a0 |
| parent | 983b9729f18b1ab1d4734663dc15b4f79ffb08fb |
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> |
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> |
| commit time | Fri, 9 Sep 2022 04:51:50 +0200 |
- M src/imports/location/location.cpp
- M src/imports/location/location.h
- M src/location/CMakeLists.txt
- M src/location/declarativemaps/qdeclarativegeoroute.cpp
- M src/location/declarativemaps/qdeclarativegeoroute_p.h
- D src/location/declarativemaps/qdeclarativegeoroutesegment.cpp
- D src/location/declarativemaps/qdeclarativegeoroutesegment_p.h
- M src/location/doc/snippets/declarative/routing.qml
- M src/location/doc/src/maps.qdoc
- M src/location/doc/src/qml-maps.qdoc
- M src/location/doc/src/qtlocation-qml.qdoc
- M src/location/labs/qdeclarativenavigator.cpp
- M src/location/maps/qgeomaneuver.cpp
- M src/location/maps/qgeoroutesegment.cpp
- M tests/auto/declarative_location_core/tst_routing.qml