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>
| commit | 9ef81d240ad8d27ea482f9a15d2647a6eee1f7f2 |
| parent | d7936f74bda527a85d69e7d1c412d79ee952d139 |
| author | Paolo Angelelli <paolo.angelelli@qt.io> |
| committer | Paolo Angelelli <paolo.angelelli@qt.io> |
| commit time | Tue, 31 Jan 2017 09:33:41 +0000 |
- M src/imports/location/location.cpp
- M src/location/declarativemaps/declarativemaps.pri
- M src/location/declarativemaps/qdeclarativegeomap.cpp
- M src/location/declarativemaps/qdeclarativegeomap_p.h
- A src/location/declarativemaps/qdeclarativegeomapitemgroup.cpp
- A src/location/declarativemaps/qdeclarativegeomapitemgroup_p.h
- A src/location/doc/images/api-mapitemgroup.png
- A tests/auto/declarative_ui/ItemGroup.qml
- M tests/auto/declarative_ui/declarative_ui.pro
- M tests/auto/declarative_ui/tst_map_item.qml