summaryrefslogtreecommitdiff
path: root/src/location/declarativemaps/qdeclarativegeomapquickitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/declarativemaps/qdeclarativegeomapquickitem.cpp')
-rw-r--r--src/location/declarativemaps/qdeclarativegeomapquickitem.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeomapquickitem.cpp b/src/location/declarativemaps/qdeclarativegeomapquickitem.cpp
index b3b8aa8a..c5c336b5 100644
--- a/src/location/declarativemaps/qdeclarativegeomapquickitem.cpp
+++ b/src/location/declarativemaps/qdeclarativegeomapquickitem.cpp
@@ -149,7 +149,7 @@ void QDeclarativeGeoMapQuickItem::setCoordinate(const QGeoCoordinate &coordinate
geoshape_.setTopLeft(coordinate_);
geoshape_.setBottomRight(coordinate_);
// TODO: Handle zoomLevel != 0.0
-
+ markGeoGeometryDirty();
polishAndUpdate();
emit coordinateChanged();
}
@@ -204,7 +204,7 @@ void QDeclarativeGeoMapQuickItem::setSourceItem(QQuickItem *sourceItem)
if (sourceItem_.data() == sourceItem)
return;
sourceItem_ = sourceItem;
-
+ markGeoGeometryDirty(); // This is equivalent to geometry
polishAndUpdate();
emit sourceItemChanged();
}
@@ -250,6 +250,7 @@ void QDeclarativeGeoMapQuickItem::setAnchorPoint(const QPointF &anchorPoint)
if (anchorPoint == anchorPoint_)
return;
anchorPoint_ = anchorPoint;
+ markGeoGeometryDirty(); // This is equivalent to geometry
polishAndUpdate();
emit anchorPointChanged();
}
@@ -282,6 +283,7 @@ void QDeclarativeGeoMapQuickItem::setZoomLevel(qreal zoomLevel)
if (zoomLevel == zoomLevel_)
return;
zoomLevel_ = zoomLevel;
+ markGeoGeometryDirty(); // This is equivalent to geometry
// TODO: update geoshape_!
polishAndUpdate();
emit zoomLevelChanged();
@@ -299,6 +301,11 @@ const QGeoShape &QDeclarativeGeoMapQuickItem::geoShape() const
return geoshape_;
}
+QGeoMap::ItemType QDeclarativeGeoMapQuickItem::itemType() const
+{
+ return QGeoMap::MapQuickItem;
+}
+
/*!
\internal
*/