From 74e0f7b414432688858ce9d82a05384b4f883688 Mon Sep 17 00:00:00 2001 From: Paolo Angelelli Date: Mon, 6 Nov 2017 16:21:58 +0100 Subject: Introduce Waypoint This patch replaces QGeoCoordinate with Waypoint as mean to specify waypoints in a RouteQuery. This patch also adds a new invokable to RouteQuery, waypointObjects, to return QDeclarativeGeoWaypoints instead of QGeoCooordinates. NOTE: If, by 5.11, support to perform implicit conversions in method invocations based on converters registered in the metatype system will be added, this method could/should be removed, and QDeclarativeGeoWaypoint objects should be return as QVariants from the waypoints() getter, as they could be used in place of QGeoCoordinate when passing them as arguments. Task-number: QTBUG-64066 Change-Id: I77747f53cdcbabe6430580b60fa59d4afe8c650a Reviewed-by: Alex Blasche --- src/imports/positioning/positioning.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/imports/positioning') diff --git a/src/imports/positioning/positioning.cpp b/src/imports/positioning/positioning.cpp index 585445b5..a324905b 100644 --- a/src/imports/positioning/positioning.cpp +++ b/src/imports/positioning/positioning.cpp @@ -57,6 +57,7 @@ #include #include #include +#include #include @@ -565,6 +566,7 @@ public: qRegisterMetaType(); qRegisterMetaType(); QMetaType::registerEqualsComparator(); + qRegisterMetaType(); qRegisterAnimationInterpolator(q_coordinateInterpolator); -- cgit v1.2.1