summaryrefslogtreecommitdiff
path: root/src/location/declarativemaps/qgeomapobject_p.h
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2019-01-30 20:59:59 +0100
committerPaolo Angelelli <paolo.angelelli@qt.io>2019-03-11 12:10:54 +0000
commita52dae6a79c1c19ee2391037cfdc6d557381bb88 (patch)
tree0308df23ee4097132a8dc34a05ea326bb9adda58 /src/location/declarativemaps/qgeomapobject_p.h
parentb1f6028c2aba51b898ce380f7b584ae603a06382 (diff)
downloadqtlocation-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/location/declarativemaps/qgeomapobject_p.h')
-rw-r--r--src/location/declarativemaps/qgeomapobject_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/location/declarativemaps/qgeomapobject_p.h b/src/location/declarativemaps/qgeomapobject_p.h
index bc63e0a6..000d8320 100644
--- a/src/location/declarativemaps/qgeomapobject_p.h
+++ b/src/location/declarativemaps/qgeomapobject_p.h
@@ -51,6 +51,7 @@
#include <QtLocation/private/qparameterizableobject_p.h>
#include <QExplicitlySharedDataPointer>
#include <QtPositioning/qgeoshape.h>
+#include <qqml.h>
QT_BEGIN_NAMESPACE
@@ -133,6 +134,9 @@ protected:
friend class QGeoMapLayer;
friend class QDeclarativeNavigator;
};
+
QT_END_NAMESPACE
+QML_DECLARE_TYPE(QGeoMapObject)
+
#endif // QGEOMAPOBJECTBASE_H