diff options
-rw-r--r-- | src/location/declarativemaps/qdeclarativegeoroute.cpp | 5 | ||||
-rw-r--r-- | src/location/declarativemaps/qdeclarativegeoroute_p.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeoroute.cpp b/src/location/declarativemaps/qdeclarativegeoroute.cpp index 5540263c..aab59dc2 100644 --- a/src/location/declarativemaps/qdeclarativegeoroute.cpp +++ b/src/location/declarativemaps/qdeclarativegeoroute.cpp @@ -301,4 +301,9 @@ int QDeclarativeGeoRoute::segmentsCount() const return qMax(route_.d_ptr->segmentsCount(), segments_.count()); } +const QGeoRoute &QDeclarativeGeoRoute::route() const +{ + return route_; +} + QT_END_NAMESPACE diff --git a/src/location/declarativemaps/qdeclarativegeoroute_p.h b/src/location/declarativemaps/qdeclarativegeoroute_p.h index 738d2089..2be3d3f1 100644 --- a/src/location/declarativemaps/qdeclarativegeoroute_p.h +++ b/src/location/declarativemaps/qdeclarativegeoroute_p.h @@ -85,6 +85,7 @@ public: void clearSegments(); int segmentsCount() const; + const QGeoRoute &route() const; Q_SIGNALS: void pathChanged(); |