From 9ef81d240ad8d27ea482f9a15d2647a6eee1f7f2 Mon Sep 17 00:00:00 2001 From: Paolo Angelelli Date: Tue, 9 Aug 2016 13:16:49 +0200 Subject: 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 --- src/imports/location/location.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/imports/location') 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 #include #include +#include //Place includes #include @@ -173,7 +174,7 @@ public: minor = 9; qmlRegisterType(uri, major, minor, "MapParameter"); qmlRegisterType(uri, major, minor, "MapCopyrightNotice"); - + qmlRegisterType(uri, major, minor, "MapItemGroup"); //registrations below are version independent qRegisterMetaType(); -- cgit v1.2.1