diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2016-08-09 13:16:49 +0200 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-01-31 09:33:41 +0000 |
commit | 9ef81d240ad8d27ea482f9a15d2647a6eee1f7f2 (patch) | |
tree | 63d54d6010fe0e34faeb93ca40f8d17044f254c1 /src/imports | |
parent | d7936f74bda527a85d69e7d1c412d79ee952d139 (diff) | |
download | qtlocation-9ef81d240ad8d27ea482f9a15d2647a6eee1f7f2.tar.gz |
Allow to create maps with groups of map items
This patch lets a user create an external qml file, and put multiple
map items inside a parent MapItemGroup{}, and add that element to a Map
item.
QDeclarativeGeoMap gets also two associated methods: addMapItemGroup and
removeMapItemGroup to deal with item groups at runtime.
Additionally, clearMapItems now clears also added item groups.
Task-number: QTBUG-55211
Change-Id: Ie4e602e4bda65fb56422b721be5fd34c54eb7954
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/location/location.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/imports/location/location.cpp b/src/imports/location/location.cpp index 44f4bd5a..4536b371 100644 --- a/src/imports/location/location.cpp +++ b/src/imports/location/location.cpp @@ -52,6 +52,7 @@ #include <QtLocation/private/qdeclarativepolygonmapitem_p.h> #include <QtLocation/private/qdeclarativegeomapparameter_p.h> #include <QtLocation/private/qdeclarativegeomapcopyrightsnotice_p.h> +#include <QtLocation/private/qdeclarativegeomapitemgroup_p.h> //Place includes #include <QtLocation/private/qdeclarativecategory_p.h> @@ -173,7 +174,7 @@ public: minor = 9; qmlRegisterType<QDeclarativeGeoMapParameter>(uri, major, minor, "MapParameter"); qmlRegisterType<QDeclarativeGeoMapCopyrightNotice>(uri, major, minor, "MapCopyrightNotice"); - + qmlRegisterType<QDeclarativeGeoMapItemGroup>(uri, major, minor, "MapItemGroup"); //registrations below are version independent qRegisterMetaType<QPlaceCategory>(); |