diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-02-09 11:22:01 +0100 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-02-13 15:26:45 +0000 |
commit | 68520449fe15682fe8fcd666860f6ae86493ebf5 (patch) | |
tree | fb8f466f12e2bc70fffa2fc5d9ebeb07958570db /src/location/declarativemaps/qdeclarativegeomapquickitem.cpp | |
parent | 96508ffb32c03850033b41f1eb50e3ca9144408c (diff) | |
download | qtlocation-68520449fe15682fe8fcd666860f6ae86493ebf5.tar.gz |
Remove dirty geo* flags from map itemsv5.9.0-alpha1
The recommended way for a plugin to get notification for when to update
items is to connect to the item's signals.
Therefore these introduced dirty flags that would have to be checked
in a loop can be removed.
Change-Id: I28c9b236b3a2e6296a89649b604381a2001a0b20
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/declarativemaps/qdeclarativegeomapquickitem.cpp')
-rw-r--r-- | src/location/declarativemaps/qdeclarativegeomapquickitem.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeomapquickitem.cpp b/src/location/declarativemaps/qdeclarativegeomapquickitem.cpp index c5c336b5..e212fa08 100644 --- a/src/location/declarativemaps/qdeclarativegeomapquickitem.cpp +++ b/src/location/declarativemaps/qdeclarativegeomapquickitem.cpp @@ -149,7 +149,6 @@ void QDeclarativeGeoMapQuickItem::setCoordinate(const QGeoCoordinate &coordinate geoshape_.setTopLeft(coordinate_); geoshape_.setBottomRight(coordinate_); // TODO: Handle zoomLevel != 0.0 - markGeoGeometryDirty(); polishAndUpdate(); emit coordinateChanged(); } @@ -204,7 +203,6 @@ void QDeclarativeGeoMapQuickItem::setSourceItem(QQuickItem *sourceItem) if (sourceItem_.data() == sourceItem) return; sourceItem_ = sourceItem; - markGeoGeometryDirty(); // This is equivalent to geometry polishAndUpdate(); emit sourceItemChanged(); } @@ -250,7 +248,6 @@ void QDeclarativeGeoMapQuickItem::setAnchorPoint(const QPointF &anchorPoint) if (anchorPoint == anchorPoint_) return; anchorPoint_ = anchorPoint; - markGeoGeometryDirty(); // This is equivalent to geometry polishAndUpdate(); emit anchorPointChanged(); } @@ -283,7 +280,6 @@ void QDeclarativeGeoMapQuickItem::setZoomLevel(qreal zoomLevel) if (zoomLevel == zoomLevel_) return; zoomLevel_ = zoomLevel; - markGeoGeometryDirty(); // This is equivalent to geometry // TODO: update geoshape_! polishAndUpdate(); emit zoomLevelChanged(); |