diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-09-02 16:54:38 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-09-09 04:51:50 +0200 |
commit | 76e21e0fd44b7841f1502eddf87147fa773685a0 (patch) | |
tree | bdc968fb85060786eb96ef6064a4991f29ceae61 /tests/auto | |
parent | 983b9729f18b1ab1d4734663dc15b4f79ffb08fb (diff) | |
download | qtlocation-76e21e0fd44b7841f1502eddf87147fa773685a0.tar.gz |
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>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/declarative_location_core/tst_routing.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/declarative_location_core/tst_routing.qml b/tests/auto/declarative_location_core/tst_routing.qml index 2540a54c..fe3a2dbd 100644 --- a/tests/auto/declarative_location_core/tst_routing.qml +++ b/tests/auto/declarative_location_core/tst_routing.qml @@ -73,11 +73,11 @@ Item { property variant ntr: QtPositioning.coordinate(3, 3) property variant unitBox: QtPositioning.rectangle(tl, br) + property routeSegment emptySegment Route {id: emptyRoute} TestCase { name: "RouteManeuver RouteSegment and MapRoute" - RouteSegment {id: emptySegment} // TODO enable when we have map route //MapRoute {id: emptyMapRoute} |