diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2019-05-09 20:18:20 +0200 |
---|---|---|
committer | paolo <paolo.angelelli@qt.io> | 2019-07-09 11:40:00 +0200 |
commit | 93fcae54d5f8cebf2e8988a5bc50ecb7a4f6b60c (patch) | |
tree | ad0709a15cf1ded0aba780bdb6a1cbde9e40cedb /src/location/maps | |
parent | eefb728271ac436221a7a81aff8d7a29ac6ed936 (diff) | |
download | qtlocation-93fcae54d5f8cebf2e8988a5bc50ecb7a4f6b60c.tar.gz |
Expose alternativeRoutes in QDeclarativeNavigationBasicDirections
So that they can be also visualized in list views or details can be
presented.
Change-Id: Ib8bb48e73624d8bb50073312e7834c3c609c561b
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/maps')
-rw-r--r-- | src/location/maps/qnavigationmanagerengine.cpp | 5 | ||||
-rw-r--r-- | src/location/maps/qnavigationmanagerengine_p.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/location/maps/qnavigationmanagerengine.cpp b/src/location/maps/qnavigationmanagerengine.cpp index 8837e5c6..aa5a980b 100644 --- a/src/location/maps/qnavigationmanagerengine.cpp +++ b/src/location/maps/qnavigationmanagerengine.cpp @@ -141,6 +141,11 @@ QGeoRouteLeg QAbstractNavigator::currentRouteLeg() const return QGeoRouteLeg(); } +QList<QGeoRoute> QAbstractNavigator::alternativeRoutes() const +{ + return QList<QGeoRoute>(); +} + int QAbstractNavigator::currentSegment() const { return 0; diff --git a/src/location/maps/qnavigationmanagerengine_p.h b/src/location/maps/qnavigationmanagerengine_p.h index 658f4a9a..8d2c9a99 100644 --- a/src/location/maps/qnavigationmanagerengine_p.h +++ b/src/location/maps/qnavigationmanagerengine_p.h @@ -98,6 +98,7 @@ public: virtual int traveledTime() const; virtual QGeoRoute currentRoute() const; virtual QGeoRouteLeg currentRouteLeg() const; + virtual QList<QGeoRoute> alternativeRoutes() const = 0; virtual int currentSegment() const; virtual void setAutomaticReroutingEnabled(bool autoRerouting) = 0; virtual bool automaticReroutingEnabled() const = 0; // configured via navigation params at construction time @@ -121,6 +122,7 @@ signals: void nextManeuverIconChanged(); void progressInformationChanged(); void isOnRouteChanged(); + void alternativeRoutesChanged(); private: QScopedPointer<QAbstractNavigatorPrivate> d; |