diff options
Diffstat (limited to 'src/imports/location/qdeclarativepolygonmapitem_p.h')
-rw-r--r-- | src/imports/location/qdeclarativepolygonmapitem_p.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/imports/location/qdeclarativepolygonmapitem_p.h b/src/imports/location/qdeclarativepolygonmapitem_p.h index 19ac5081..09c46af2 100644 --- a/src/imports/location/qdeclarativepolygonmapitem_p.h +++ b/src/imports/location/qdeclarativepolygonmapitem_p.h @@ -104,6 +104,7 @@ public: QDeclarativeMapLineProperties *border(); bool contains(const QPointF &point) const Q_DECL_OVERRIDE; + const QGeoShape &geoShape() const Q_DECL_OVERRIDE; Q_SIGNALS: void pathChanged(); @@ -114,23 +115,20 @@ protected: void updatePolish() Q_DECL_OVERRIDE; protected Q_SLOTS: + void markSourceDirtyAndUpdate(); void handleBorderUpdated(); virtual void afterViewportChanged(const QGeoMapViewportChangeEvent &event) Q_DECL_OVERRIDE; private: void pathPropertyChanged(); + QGeoPath geopath_; QDeclarativeMapLineProperties border_; - QList<QGeoCoordinate> path_; - QGeoCoordinate geoLeftBound_; QColor color_; bool dirtyMaterial_; QGeoMapPolygonGeometry geometry_; QGeoMapPolylineGeometry borderGeometry_; bool updatingGeometry_; - // for the left bound calculation - QVector<double> deltaXs_; // longitude deltas from path_[0] - double minX_; // minimum value inside deltaXs_ }; ////////////////////////////////////////////////////////////////////// |