summaryrefslogtreecommitdiffstats
path: root/src/location/declarativemaps/qdeclarativegeomapitemgroup_p.h
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2017-06-09 16:26:56 +0200
committerPaolo Angelelli <paolo.angelelli@qt.io>2017-06-18 08:04:43 +0000
commitc0683791e467e75067ec1948952528a1ba998710 (patch)
treee92035aaee39c4248bfda0cafc09d739c3483938 /src/location/declarativemaps/qdeclarativegeomapitemgroup_p.h
parentf05bcda6bea40c85edafc8b898629804106ca5e8 (diff)
Fix add/removeMapItemGroup not checking if the item is added to a map
Currently these methods aren't checking if a group is already added to another map. This patch fixes it. Change-Id: I58a5e633b44abfcae5c362f8e97d4c6706869ac5 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/declarativemaps/qdeclarativegeomapitemgroup_p.h')
-rw-r--r--src/location/declarativemaps/qdeclarativegeomapitemgroup_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeomapitemgroup_p.h b/src/location/declarativemaps/qdeclarativegeomapitemgroup_p.h
index 1b008d71..f91d291c 100644
--- a/src/location/declarativemaps/qdeclarativegeomapitemgroup_p.h
+++ b/src/location/declarativemaps/qdeclarativegeomapitemgroup_p.h
@@ -53,6 +53,7 @@
QT_BEGIN_NAMESPACE
+class QDeclarativeGeoMap;
class Q_LOCATION_PRIVATE_EXPORT QDeclarativeGeoMapItemGroup : public QQuickItem
{
Q_OBJECT
@@ -60,6 +61,10 @@ public:
explicit QDeclarativeGeoMapItemGroup(QQuickItem *parent = 0);
virtual ~QDeclarativeGeoMapItemGroup();
+ void setQuickMap(QDeclarativeGeoMap *quickMap);
+ QDeclarativeGeoMap *quickMap() const;
+private:
+ QDeclarativeGeoMap *m_quickMap;
};
QT_END_NAMESPACE