Use QPointer to avoid dangling QDeclarativeGeoRoute in NavigatorPrivate


QDeclarativeNavigator::setRoute takes a QDeclarativeGeoRoute.
This type is not COW, and could be destroyed by the user or the route
model.

This patch stores it inside a QPointer.
It also stores the contained QGeoRoute, that is what the navigation
engines are supposed to use to perform navigation, and is COW.

Task-number: QTBUG-68536
Change-Id: I73fb79faeb3ac9efefcbd778ee106d29fbf26658
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
commite45ded979d7838847b7fe057f0a2d6c15b517de2
parent1768efa1761ec8fb54a734a4297a29b3d591d8ae
authorPaolo Angelelli <paolo.angelelli@qt.io>
committerPaolo Angelelli <paolo.angelelli@qt.io>
commit timeFri, 8 Jun 2018 09:22:01 +0000