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>
| commit | 8ac6377e62af803b567449cdf30c669b92114cc4 |
| parent | 2dc1acb63777c983cfc4cbdbd2176a8dab112209 |
| author | Paolo Angelelli <paolo.angelelli@qt.io> |
| committer | BogDan Vatra <bogdan@kdab.com> |
| commit time | Thu, 24 Aug 2017 12:16:32 +0000 |
- M src/location/declarativemaps/qdeclarativegeoroute.cpp
- M src/location/declarativemaps/qdeclarativegeoroute_p.h
- M src/location/maps/qgeomaneuver.cpp
- M src/location/maps/qgeomaneuver.h
- M src/location/maps/qgeomaneuver_p.h
- M src/location/maps/qgeoroute.cpp
- M src/location/maps/qgeoroute.h
- M src/location/maps/qgeoroute_p.h
- M src/location/maps/qgeoroutesegment.cpp
- M src/location/maps/qgeoroutesegment.h
- M src/location/maps/qgeoroutesegment_p.h
- M tests/auto/declarative_core/tst_routing.qml
- M tests/auto/geotestplugin/qgeoroutingmanagerengine_test.h