diff options
Diffstat (limited to 'src/location/maps')
-rw-r--r-- | src/location/maps/qgeoroute.cpp | 5 | ||||
-rw-r--r-- | src/location/maps/qgeoroute.h | 1 | ||||
-rw-r--r-- | src/location/maps/qgeoroute_p.h | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/src/location/maps/qgeoroute.cpp b/src/location/maps/qgeoroute.cpp index 2e7b259a..d2f6fb51 100644 --- a/src/location/maps/qgeoroute.cpp +++ b/src/location/maps/qgeoroute.cpp @@ -414,6 +414,11 @@ QGeoRouteSegment QGeoRoutePrivate::firstSegment() const return QGeoRouteSegment(); } +const QGeoRoutePrivate *QGeoRoutePrivate::routePrivateData(const QGeoRoute &route) +{ + return route.d_ptr.data(); +} + /******************************************************************************* *******************************************************************************/ diff --git a/src/location/maps/qgeoroute.h b/src/location/maps/qgeoroute.h index 7dee719f..de319b4c 100644 --- a/src/location/maps/qgeoroute.h +++ b/src/location/maps/qgeoroute.h @@ -91,6 +91,7 @@ protected: QGeoRoute(const QExplicitlySharedDataPointer<QGeoRoutePrivate> &dd); QExplicitlySharedDataPointer<QGeoRoutePrivate> d_ptr; friend class QDeclarativeGeoRoute; + friend class QGeoRoutePrivate; }; QT_END_NAMESPACE diff --git a/src/location/maps/qgeoroute_p.h b/src/location/maps/qgeoroute_p.h index 26eb613c..d56b2d44 100644 --- a/src/location/maps/qgeoroute_p.h +++ b/src/location/maps/qgeoroute_p.h @@ -97,6 +97,8 @@ public: virtual QString engineName() const = 0; virtual int segmentsCount() const = 0; + static const QGeoRoutePrivate *routePrivateData(const QGeoRoute &route); + protected: virtual bool equals(const QGeoRoutePrivate &other) const; }; |