From 40e9867254d2241fdac1ea76d416ad54e71d04ac Mon Sep 17 00:00:00 2001 From: Paolo Angelelli Date: Fri, 10 Aug 2018 12:50:10 +0200 Subject: Make QDeclarativeGeoMapItemBase::geoShape R/W This patch adds a setter for the geoShape property, overridden in the subclasses. Change-Id: I5fc4d412efee5e95c5650943ea5bf9b72dc40155 Reviewed-by: Alex Blasche --- src/location/declarativemaps/qdeclarativepolygonmapitem_p.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/location/declarativemaps/qdeclarativepolygonmapitem_p.h') diff --git a/src/location/declarativemaps/qdeclarativepolygonmapitem_p.h b/src/location/declarativemaps/qdeclarativepolygonmapitem_p.h index 83983651..a68b6315 100644 --- a/src/location/declarativemaps/qdeclarativepolygonmapitem_p.h +++ b/src/location/declarativemaps/qdeclarativepolygonmapitem_p.h @@ -52,6 +52,7 @@ #include #include #include +#include #include #include @@ -106,6 +107,7 @@ public: bool contains(const QPointF &point) const override; const QGeoShape &geoShape() const override; + void setGeoShape(const QGeoShape &shape) override; QGeoMap::ItemType itemType() const override; Q_SIGNALS: @@ -125,7 +127,7 @@ private: void regenerateCache(); void updateCache(); - QGeoPath geopath_; + QGeoPolygon geopath_; QList geopathProjected_; QDeclarativeMapLineProperties border_; QColor color_; -- cgit v1.2.1