diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-06-09 15:56:41 +0200 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-08-07 07:49:18 +0000 |
commit | c6d41bdb24dbfcd846ca2669cee7b83be3e7be0a (patch) | |
tree | e5ba8b752d1ed509bf14573245675fc32a8ee557 /src/location/declarativemaps/qdeclarativegeomap_p.h | |
parent | 92d8e4dc93400250b47f8dbe96ec7e2f748d8d4b (diff) | |
download | qtlocation-c6d41bdb24dbfcd846ca2669cee7b83be3e7be0a.tar.gz |
Add invokables to add/remove mapItemViews
This patch adds two new methods to QDeclarativeGeoMap, to allow users
to add or remove MapItemViews at runtime.
[ChangeLog][QtLocation][Map] Added methods to add or remove MapItemViews
at runtime.
Task-number: QTBUG-55782
Change-Id: I4e612a9476a864331f61d49dac811a8069ae010f
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/declarativemaps/qdeclarativegeomap_p.h')
-rw-r--r-- | src/location/declarativemaps/qdeclarativegeomap_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeomap_p.h b/src/location/declarativemaps/qdeclarativegeomap_p.h index f88eb03f..90e73420 100644 --- a/src/location/declarativemaps/qdeclarativegeomap_p.h +++ b/src/location/declarativemaps/qdeclarativegeomap_p.h @@ -164,6 +164,9 @@ public: Q_INVOKABLE void addMapItemGroup(QDeclarativeGeoMapItemGroup *itemGroup); Q_INVOKABLE void removeMapItemGroup(QDeclarativeGeoMapItemGroup *itemGroup); + Q_INVOKABLE void removeMapItemView(QDeclarativeGeoMapItemView *itemView); + Q_INVOKABLE void addMapItemView(QDeclarativeGeoMapItemView *itemView); + Q_INVOKABLE void clearMapItems(); QList<QObject *> mapItems(); |