summaryrefslogtreecommitdiff
path: root/src/location/declarativemaps/qgeomapobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/declarativemaps/qgeomapobject.cpp')
-rw-r--r--src/location/declarativemaps/qgeomapobject.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/location/declarativemaps/qgeomapobject.cpp b/src/location/declarativemaps/qgeomapobject.cpp
index 2e81afa9..d1d78b66 100644
--- a/src/location/declarativemaps/qgeomapobject.cpp
+++ b/src/location/declarativemaps/qgeomapobject.cpp
@@ -185,7 +185,7 @@ void QGeoMapObject::setMap(QGeoMap *map)
d_ptr->m_componentCompleted = oldCmponentCompleted;
d_ptr->setVisible(oldVisible);
}
- d_ptr->m_map = map;
+ d_ptr->setMap(map);
const QList<QGeoMapObject *> kids = geoMapObjectChildren();
for (auto kid : kids)
@@ -269,4 +269,9 @@ void QGeoMapObjectPrivate::setVisible(bool visible)
m_visible = visible;
}
+void QGeoMapObjectPrivate::setMap(QGeoMap *map)
+{
+ m_map = map;
+}
+
QT_END_NAMESPACE