diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-08-10 12:50:10 +0200 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-08-14 11:16:53 +0000 |
commit | 40e9867254d2241fdac1ea76d416ad54e71d04ac (patch) | |
tree | 1e377b8ab2eabc87490e300c34983c5c0dc6461c /src/location/declarativemaps/qdeclarativepolygonmapitem_p.h | |
parent | 07be65e9d9a883aab4e1fda367cf591b7cb97631 (diff) | |
download | qtlocation-40e9867254d2241fdac1ea76d416ad54e71d04ac.tar.gz |
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 <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/declarativemaps/qdeclarativepolygonmapitem_p.h')
-rw-r--r-- | src/location/declarativemaps/qdeclarativepolygonmapitem_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 <QtLocation/private/qdeclarativegeomapitembase_p.h> #include <QtLocation/private/qdeclarativepolylinemapitem_p.h> #include <QtLocation/private/qgeomapitemgeometry_p.h> +#include <QtPositioning/qgeopolygon.h> #include <QSGGeometryNode> #include <QSGFlatColorMaterial> @@ -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<QDoubleVector2D> geopathProjected_; QDeclarativeMapLineProperties border_; QColor color_; |