diff options
Diffstat (limited to 'src/location/declarativemaps/qdeclarativepolygonmapitem_p.h')
-rw-r--r-- | src/location/declarativemaps/qdeclarativepolygonmapitem_p.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/location/declarativemaps/qdeclarativepolygonmapitem_p.h b/src/location/declarativemaps/qdeclarativepolygonmapitem_p.h index 9a46bb2c..a928ae39 100644 --- a/src/location/declarativemaps/qdeclarativepolygonmapitem_p.h +++ b/src/location/declarativemaps/qdeclarativepolygonmapitem_p.h @@ -68,7 +68,7 @@ public: inline void setAssumeSimple(bool value) { assumeSimple_ = value; } void updateSourcePoints(const QGeoMap &map, - const QList<QGeoCoordinate> &path); + const QList<QDoubleVector2D> &path); void updateScreenPoints(const QGeoMap &map); @@ -122,9 +122,11 @@ protected Q_SLOTS: virtual void afterViewportChanged(const QGeoMapViewportChangeEvent &event) Q_DECL_OVERRIDE; private: - void pathPropertyChanged(); + void regenerateCache(); + void updateCache(); QGeoPath geopath_; + QList<QDoubleVector2D> geopathProjected_; QDeclarativeMapLineProperties border_; QColor color_; bool dirtyMaterial_; |