summaryrefslogtreecommitdiff
path: root/src/location/declarativemaps/qdeclarativegeomapitembase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/declarativemaps/qdeclarativegeomapitembase.cpp')
-rw-r--r--src/location/declarativemaps/qdeclarativegeomapitembase.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeomapitembase.cpp b/src/location/declarativemaps/qdeclarativegeomapitembase.cpp
index faa06fef..366992ed 100644
--- a/src/location/declarativemaps/qdeclarativegeomapitembase.cpp
+++ b/src/location/declarativemaps/qdeclarativegeomapitembase.cpp
@@ -141,6 +141,8 @@ void QDeclarativeGeoMapItemBase::setMap(QDeclarativeGeoMap *quickMap, QGeoMap *m
if (map_ && quickMap_) {
connect(map_, SIGNAL(cameraDataChanged(QGeoCameraData)),
this, SLOT(baseCameraDataChanged(QGeoCameraData)));
+ connect(map_, SIGNAL(visibleAreaChanged()),
+ this, SLOT(visibleAreaChanged()));
connect(quickMap, SIGNAL(heightChanged()), this, SLOT(polishAndUpdate()));
connect(quickMap, SIGNAL(widthChanged()), this, SLOT(polishAndUpdate()));
lastSize_ = QSizeF(quickMap_->width(), quickMap_->height());
@@ -177,6 +179,13 @@ void QDeclarativeGeoMapItemBase::baseCameraDataChanged(const QGeoCameraData &cam
afterViewportChanged(evt);
}
+void QDeclarativeGeoMapItemBase::visibleAreaChanged()
+{
+ QGeoMapViewportChangeEvent evt;
+ evt.mapSize = QSizeF(quickMap_->width(), quickMap_->height());
+ afterViewportChanged(evt);
+}
+
/*!
\internal
*/