diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-02-09 18:47:33 +0100 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-02-21 12:33:42 +0000 |
commit | d87f58c8d8eab0c66a9b0e2d0355ff42fbf33b93 (patch) | |
tree | 1d6a59690c51791eda6c789e7227e088aece758a /src/location/maps/qgeomap.cpp | |
parent | 9daf00ef519e3dbd061e64bfe13b2ca9bfab4e28 (diff) | |
download | qtlocation-d87f58c8d8eab0c66a9b0e2d0355ff42fbf33b93.tar.gz |
Add virtual QGeoMap::removeMapObject
this can be called in ~QGeoMapObjectPrivate overrides to delete
themselves from the map.
Change-Id: I715491728a60b3d1bd60944a51dfa0ba07a3b29e
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/maps/qgeomap.cpp')
-rw-r--r-- | src/location/maps/qgeomap.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/location/maps/qgeomap.cpp b/src/location/maps/qgeomap.cpp index 58657143..5f125169 100644 --- a/src/location/maps/qgeomap.cpp +++ b/src/location/maps/qgeomap.cpp @@ -290,6 +290,13 @@ bool QGeoMap::createMapObjectImplementation(QGeoMapObject *obj) return false; } +/*! + To be called in ~QGeoMapObjectPrivate overrides, if needed +*/ +void QGeoMap::removeMapObject(QGeoMapObject * /*obj*/) +{ +} + QList<QGeoMapObject *> QGeoMap::mapObjects() const { Q_D(const QGeoMap); |