diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-09-02 16:40:45 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-09-08 13:27:40 +0200 |
commit | 983b9729f18b1ab1d4734663dc15b4f79ffb08fb (patch) | |
tree | c0f9d039ea5ae42cef59c80795d99fff3b98779a /src/location/doc/snippets/declarative/routing.qml | |
parent | 3c086d26838138492e8afcd766bcbdbbc17657fe (diff) | |
download | qtlocation-983b9729f18b1ab1d4734663dc15b4f79ffb08fb.tar.gz |
Register QGeoManeuver declaratively
Amend da10ee9b67aaf0c9218c2b891efa06b323866470 to register QGeoManeuver
also via Foreign types (both as a value type and a namespace), using
declarative type registration and generated plugin sources. Rename the
QML type to routeManeuver to follow naming convention.
Pick-to: 6.2
Change-Id: I98257c0ef4389e4de225c933425740a82161d5df
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/location/doc/snippets/declarative/routing.qml')
-rw-r--r-- | src/location/doc/snippets/declarative/routing.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/location/doc/snippets/declarative/routing.qml b/src/location/doc/snippets/declarative/routing.qml index ae564704..3027b22b 100644 --- a/src/location/doc/snippets/declarative/routing.qml +++ b/src/location/doc/snippets/declarative/routing.qml @@ -99,15 +99,15 @@ Item { Text { text: (1 + index) + "." } Text { text: hasManeuver ? modelData.maneuver.instructionText : "" } //! [Route Maneuver List2] - property RouteManeuver routeManeuver: modelData.maneuver + property routeManeuver routeManeuver: modelData.maneuver property RouteSegment routeSegment: modelData - //! [RouteManeuver] + //! [routeManeuver] Text { text: "Distance till next maneuver: " + routeManeuver.distanceToNextInstruction + " meters, estimated time: " + routeManeuver.timeToNextInstruction + " seconds." } - //! [RouteManeuver] + //! [routeManeuver] //! [RouteSegment] Text { |