From 3e7b02e1501599fb69a7c79e44bd59365679d0e9 Mon Sep 17 00:00:00 2001 From: Paolo Angelelli Date: Tue, 1 Oct 2019 13:06:49 +0200 Subject: Fix more 5.14 QML API inconsistencies Change-Id: Ia2dac783ce05bd87888b73b4225d133ada04af79 Fixes: QTBUG-78690 Reviewed-by: Alex Blasche --- src/location/labs/qdeclarativenavigator.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/location/labs/qdeclarativenavigator.cpp b/src/location/labs/qdeclarativenavigator.cpp index b266779c..a4caca85 100644 --- a/src/location/labs/qdeclarativenavigator.cpp +++ b/src/location/labs/qdeclarativenavigator.cpp @@ -590,6 +590,7 @@ QDeclarativeNavigationBasicDirections::QDeclarativeNavigationBasicDirections(QDe \qmlproperty Route Qt.labs.location::Navigator::directions.currentRoute \qmlproperty RouteLeg Qt.labs.location::Navigator::directions.currentRouteLeg \qmlproperty int Qt.labs.location::Navigator::directions.currentSegment + \qmlproperty model Qt.labs.location::Navigator::directions.alternativeRoutes These read-only properties are part of the \e directions property group. This property group holds the navigation progress information that can be @@ -628,6 +629,8 @@ QDeclarativeNavigationBasicDirections::QDeclarativeNavigationBasicDirections(QDe holds the same route as \c currentRoute. \li The \c currentSegment property holds the index of the current RouteSegment in the \c currentRoute. + \li The \c alternativeRoutes property holds the list of alternative routes provided by + the engine. If no alternative routes are present, the model will be empty. \endlist \sa directions.waypointReached(), directions.destinationReached(), Route, RouteLeg, RouteSegment, Waypoint -- cgit v1.2.1