summaryrefslogtreecommitdiff
path: root/src/location/declarativemaps/qdeclarativecirclemapitem.cpp
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2017-02-09 11:22:01 +0100
committerPaolo Angelelli <paolo.angelelli@qt.io>2017-02-13 15:26:45 +0000
commit68520449fe15682fe8fcd666860f6ae86493ebf5 (patch)
treefb8f466f12e2bc70fffa2fc5d9ebeb07958570db /src/location/declarativemaps/qdeclarativecirclemapitem.cpp
parent96508ffb32c03850033b41f1eb50e3ca9144408c (diff)
downloadqtlocation-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/qdeclarativecirclemapitem.cpp')
-rw-r--r--src/location/declarativemaps/qdeclarativecirclemapitem.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/location/declarativemaps/qdeclarativecirclemapitem.cpp b/src/location/declarativemaps/qdeclarativecirclemapitem.cpp
index d6a46f62..369ca986 100644
--- a/src/location/declarativemaps/qdeclarativecirclemapitem.cpp
+++ b/src/location/declarativemaps/qdeclarativecirclemapitem.cpp
@@ -323,10 +323,6 @@ QDeclarativeCircleMapItem::QDeclarativeCircleMapItem(QQuickItem *parent)
this, SLOT(markSourceDirtyAndUpdate()));
QObject::connect(&border_, SIGNAL(widthChanged(qreal)),
this, SLOT(markSourceDirtyAndUpdate()));
- QObject::connect(&border_, SIGNAL(colorChanged(QColor)),
- this, SLOT(markGeoMaterialDirty()));
- QObject::connect(&border_, SIGNAL(widthChanged(qreal)),
- this, SLOT(markGeoMaterialDirty()));
// assume that circles are not self-intersecting
// to speed up processing
@@ -384,7 +380,6 @@ void QDeclarativeCircleMapItem::setCenter(const QGeoCoordinate &center)
return;
circle_.setCenter(center);
- markGeoGeometryDirty();
markSourceDirtyAndUpdate();
emit centerChanged(center);
}
@@ -406,7 +401,6 @@ void QDeclarativeCircleMapItem::setColor(const QColor &color)
return;
color_ = color;
dirtyMaterial_ = true;
- geoMaterialDirty_ = true;
update();
emit colorChanged(color_);
}
@@ -429,7 +423,6 @@ void QDeclarativeCircleMapItem::setRadius(qreal radius)
return;
circle_.setRadius(radius);
- markGeoGeometryDirty();
markSourceDirtyAndUpdate();
emit radiusChanged(radius);
}