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>
commit8ac6377e62af803b567449cdf30c669b92114cc4
parent2dc1acb63777c983cfc4cbdbd2176a8dab112209
authorPaolo Angelelli <paolo.angelelli@qt.io>
committerBogDan Vatra <bogdan@kdab.com>
commit timeThu, 24 Aug 2017 12:16:32 +0000