summaryrefslogtreecommitdiff
path: root/src/location/declarativemaps/qdeclarativegeoroute.cpp
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2018-01-15 17:56:49 +0100
committerPaolo Angelelli <paolo.angelelli@qt.io>2018-01-24 12:47:56 +0000
commit0aa7ae19eafebd0b146f9d97e04bd171c213dd76 (patch)
tree293b20119f492e834efa6923a6cb7185118c66ad /src/location/declarativemaps/qdeclarativegeoroute.cpp
parent5a6b1a0cff406a37faca940ae3b0e774c6d1c4d6 (diff)
downloadqtlocation-0aa7ae19eafebd0b146f9d97e04bd171c213dd76.tar.gz
Add QDeclarativeGeoRoute::route getter
To allow private classes to access the embedded QGeoRoute without the need to be friend. Change-Id: I7184e1a9fd038af3b82d71671667cd5b2e3449a7 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/location/declarativemaps/qdeclarativegeoroute.cpp')
-rw-r--r--src/location/declarativemaps/qdeclarativegeoroute.cpp5
1 files changed, 5 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