summaryrefslogtreecommitdiff
path: root/src/location/declarativemaps/qdeclarativepolygonmapitem.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/qdeclarativepolygonmapitem.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/qdeclarativepolygonmapitem.cpp')
-rw-r--r--src/location/declarativemaps/qdeclarativepolygonmapitem.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/location/declarativemaps/qdeclarativepolygonmapitem.cpp b/src/location/declarativemaps/qdeclarativepolygonmapitem.cpp
index 50a9fe83..ff6e58fc 100644
--- a/src/location/declarativemaps/qdeclarativepolygonmapitem.cpp
+++ b/src/location/declarativemaps/qdeclarativepolygonmapitem.cpp
@@ -339,10 +339,6 @@ QDeclarativePolygonMapItem::QDeclarativePolygonMapItem(QQuickItem *parent)
this, SLOT(handleBorderUpdated()));
QObject::connect(&border_, SIGNAL(widthChanged(qreal)),
this, SLOT(handleBorderUpdated()));
- QObject::connect(&border_, SIGNAL(colorChanged(QColor)),
- this, SLOT(markGeoMaterialDirty()));
- QObject::connect(&border_, SIGNAL(widthChanged(qreal)),
- this, SLOT(markGeoMaterialDirty()));
}
/*!
@@ -443,7 +439,6 @@ void QDeclarativePolygonMapItem::setPath(const QJSValue &value)
geometry_.setPreserveGeometry(true, geopath_.boundingGeoRectangle().topLeft());
borderGeometry_.setPreserveGeometry(true, geopath_.boundingGeoRectangle().topLeft());
- markGeoGeometryDirty();
markSourceDirtyAndUpdate();
emit pathChanged();
}
@@ -462,7 +457,6 @@ void QDeclarativePolygonMapItem::addCoordinate(const QGeoCoordinate &coordinate)
geometry_.setPreserveGeometry(true, geopath_.boundingGeoRectangle().topLeft());
borderGeometry_.setPreserveGeometry(true, geopath_.boundingGeoRectangle().topLeft());
- markGeoGeometryDirty();
markSourceDirtyAndUpdate();
emit pathChanged();
}
@@ -486,7 +480,6 @@ void QDeclarativePolygonMapItem::removeCoordinate(const QGeoCoordinate &coordina
geometry_.setPreserveGeometry(true, geopath_.boundingGeoRectangle().topLeft());
borderGeometry_.setPreserveGeometry(true, geopath_.boundingGeoRectangle().topLeft());
- markGeoGeometryDirty();
markSourceDirtyAndUpdate();
emit pathChanged();
}
@@ -511,7 +504,6 @@ void QDeclarativePolygonMapItem::setColor(const QColor &color)
color_ = color;
dirtyMaterial_ = true;
- geoMaterialDirty_ = true;
update();
emit colorChanged(color_);
}
@@ -650,7 +642,6 @@ void QDeclarativePolygonMapItem::geometryChanged(const QRectF &newGeometry, cons
geopath_.translate(offsetLati, offsetLongi);
geometry_.setPreserveGeometry(true, geopath_.boundingGeoRectangle().topLeft());
borderGeometry_.setPreserveGeometry(true, geopath_.boundingGeoRectangle().topLeft());
- markGeoGeometryDirty();
markSourceDirtyAndUpdate();
emit pathChanged();