diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-07-25 17:11:32 +0200 |
---|---|---|
committer | BogDan Vatra <bogdan@kdab.com> | 2017-08-24 12:16:32 +0000 |
commit | 8ac6377e62af803b567449cdf30c669b92114cc4 (patch) | |
tree | 0a8d9d797df2dbc32524f28510712f2ceacde764 /src/location/maps/qgeomaneuver.h | |
parent | 2dc1acb63777c983cfc4cbdbd2176a8dab112209 (diff) | |
download | qtlocation-8ac6377e62af803b567449cdf30c669b92114cc4.tar.gz |
Make QGeoRoute extensible
This change makes it possible to subclass QGeoRoute,
QGeoRouteSegment or QGeoRouteManeuver, with custom
private implementations.
It also attempts to minimize the cost that creating
a QDeclarativeGeoRoute currently has, by deferring
the initialization of QDeclarativeGeoRoute::segments_
to the first access, and also populating the list
only to the requested point.
Change-Id: I4c87391bcc380ddca6523c748ebb97d2a44ed9d2
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Diffstat (limited to 'src/location/maps/qgeomaneuver.h')
-rw-r--r-- | src/location/maps/qgeomaneuver.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/location/maps/qgeomaneuver.h b/src/location/maps/qgeomaneuver.h index 9710f8fc..1e4bff24 100644 --- a/src/location/maps/qgeomaneuver.h +++ b/src/location/maps/qgeomaneuver.h @@ -95,7 +95,9 @@ public: void setWaypoint(const QGeoCoordinate &coordinate); QGeoCoordinate waypoint() const; -private: +protected: + QGeoManeuver(const QSharedDataPointer<QGeoManeuverPrivate> &dd); + QSharedDataPointer<QGeoManeuverPrivate> d_ptr; }; |