summaryrefslogtreecommitdiff
path: root/src/imports/location/location.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2022-09-02 16:54:38 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2022-09-09 04:51:50 +0200
commit76e21e0fd44b7841f1502eddf87147fa773685a0 (patch)
treebdc968fb85060786eb96ef6064a4991f29ceae61 /src/imports/location/location.cpp
parent983b9729f18b1ab1d4734663dc15b4f79ffb08fb (diff)
downloadqtlocation-76e21e0fd44b7841f1502eddf87147fa773685a0.tar.gz
Remove QDeclarativeGeoRouteSegment wrapper
Register the QGeoRouteSegment gadget type directly as the routeSegment QML type (via a Foreign), and use it in QDeclarativeGeoRoute. The type is now uncreatable. It wasn't in 5.15, but since there is no setter-API that is exposed to QML, there is no reason to have it be a creatable type. Adjust the QML test to declare a property of type routeSegment instead. Move the QML type documentation into QGeoRouteSegment, and document the corresponding C++ properties via \property. Unify the language a bit, and follow up on the rename from RouteSegment to routeSegment. Pick-to: 6.2 Change-Id: I1ebae0c1a9d056aa59510a3ab539b1d8bce8c6c7 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/location/location.cpp')
-rw-r--r--src/imports/location/location.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/imports/location/location.cpp b/src/imports/location/location.cpp
index 59724305..8621524e 100644
--- a/src/imports/location/location.cpp
+++ b/src/imports/location/location.cpp
@@ -115,7 +115,6 @@ public:
qmlRegisterType<QDeclarativeGeoRouteModel >(uri, major, minor, "RouteModel");
qmlRegisterType<QDeclarativeGeoRouteQuery >(uri, major, minor, "RouteQuery");
qmlRegisterType<QDeclarativeGeoRoute >(uri, major, minor, "Route"); // data type
- qmlRegisterType<QDeclarativeGeoRouteSegment >(uri, major, minor, "RouteSegment");
qmlRegisterUncreatableType<QGeoMapPinchEvent >(uri, major, minor, "MapPinchEvent",
QStringLiteral("(Map)PinchEvent is not intended instantiable by developer."));
qmlRegisterUncreatableType<QQuickGeoMapGestureArea>(uri, major, minor, "MapGestureArea",