summaryrefslogtreecommitdiff
path: root/src/imports
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2019-02-05 19:42:22 +0100
committerPaolo Angelelli <paolo.angelelli@qt.io>2019-02-06 11:54:12 +0000
commitad7bcebc575922fc7c5654c118794e5758d347d2 (patch)
tree022f156d3e3859b1d488e3ec8cbdfb7b89a1a699 /src/imports
parent7a65e5f2b9d5ecda418e76f98acd90506025186a (diff)
downloadqtlocation-ad7bcebc575922fc7c5654c118794e5758d347d2.tar.gz
Add departure time attribute to route queriesv5.13.0-alpha1
So that it can be used to improve the route calculation based on traffic information or other time-based information (ferries etc.) Change-Id: I8bdc81046484cc4f0ebfaffbdf6f034c555d7781 Fixes: QTBUG-70503 Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/location/location.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/imports/location/location.cpp b/src/imports/location/location.cpp
index dbedd1de..049d52c0 100644
--- a/src/imports/location/location.cpp
+++ b/src/imports/location/location.cpp
@@ -194,6 +194,9 @@ public:
qmlRegisterType<QDeclarativeGeoRoute, 12>(uri, major, minor, "Route");
qmlRegisterType<QDeclarativeGeoRouteLeg, 12>(uri, major, minor, "RouteLeg");
+ minor = 13;
+ qmlRegisterType<QDeclarativeGeoRouteQuery, 13>(uri, major, minor, "RouteQuery");
+
// Register the latest Qt version as QML type version
qmlRegisterModule(uri, QT_VERSION_MAJOR, QT_VERSION_MINOR);