diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2019-05-09 13:49:05 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@qt.io> | 2019-07-03 10:10:43 +0000 |
commit | a0cc254c5b0a300772bba886b48b73929636c281 (patch) | |
tree | c6bab6f402e99f8c9502cac64bb4361453267d5e /src/location/labs/qdeclarativenavigator_p_p.h | |
parent | d61cf78b33ca15880c5ba4b31e450da37bd82987 (diff) | |
download | qtlocation-a0cc254c5b0a300772bba886b48b73929636c281.tar.gz |
Expose automaticReroutingEnabled and isOnRoute properties in Navigator
This patch adds these two properties to the Navigator API to let
the user know when the engine detects that the position source gets
off the route and to choose whether or not let the engine automatically
recalculate routes in that case.
Change-Id: I1f3afc8820dee1dd2042aa05fb0b3284108cb581
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/labs/qdeclarativenavigator_p_p.h')
-rw-r--r-- | src/location/labs/qdeclarativenavigator_p_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/location/labs/qdeclarativenavigator_p_p.h b/src/location/labs/qdeclarativenavigator_p_p.h index 77fe2ff2..04b8b1ef 100644 --- a/src/location/labs/qdeclarativenavigator_p_p.h +++ b/src/location/labs/qdeclarativenavigator_p_p.h @@ -132,6 +132,7 @@ public: QPointer<QDeclarativePositionSource> m_positionSource; QList<QPointer<QGeoMapParameter>> m_parameters; bool m_trackPositionSource = true; + bool m_autoRerouting = true; }; class QDeclarativeNavigatorPrivate |