diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2019-01-30 20:59:59 +0100 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2019-03-11 12:10:54 +0000 |
commit | a52dae6a79c1c19ee2391037cfdc6d557381bb88 (patch) | |
tree | 0308df23ee4097132a8dc34a05ea326bb9adda58 /src/imports/location | |
parent | b1f6028c2aba51b898ce380f7b584ae603a06382 (diff) | |
download | qtlocation-a52dae6a79c1c19ee2391037cfdc6d557381bb88.tar.gz |
Introduce Qt.labs.location QtLocationLabs singleton type
This singleton is meant to offer tech-preview map-related API.
It starts with a mapObjectsAt invokable, that can be used to probe
MapObjects at a specific coordinate of a map.
Reference implementation for Q*ObjectQSG, based on QGeoShape::contains,
included.
Change-Id: Ief692eb5a43115ca02d4642c82023d1b2e217400
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/imports/location')
-rw-r--r-- | src/imports/location/location.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imports/location/location.cpp b/src/imports/location/location.cpp index 049d52c0..5d1b6e23 100644 --- a/src/imports/location/location.cpp +++ b/src/imports/location/location.cpp @@ -176,6 +176,7 @@ public: // Register the 5.11 types minor = 11; + qmlRegisterType<QGeoMapObject>(); qmlRegisterType<QDeclarativeGeoManeuver, 11>(uri, major, minor, "RouteManeuver"); qmlRegisterType<QDeclarativeGeoMap, 11>(uri, major, minor, "Map"); qmlRegisterUncreatableType<QDeclarativeGeoMapItemBase, 11>(uri, major, minor, "GeoMapItemBase", |