diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-04-17 13:34:17 +0200 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-04-19 11:46:01 +0000 |
commit | be8b7b6d62203f3d9749a6420cf3260f8be8f7fc (patch) | |
tree | 6e2a13ad71dfc5c6b881b9b125e34d4965e2bfea /src/location/declarativemaps/qdeclarativepolylinemapitem_p.h | |
parent | ecc8182f6c6c8b1448a35de46c3f5598bbf35150 (diff) | |
download | qtlocation-be8b7b6d62203f3d9749a6420cf3260f8be8f7fc.tar.gz |
Add QGeoMapPolylineGeometry::contains
This patch makes QGeoMapItemGeometry::contains virtual, and overrides
it in QGeoMapPolylineGeometry, so that it can be used in items
that have QGeoMapPolylineGeometry for borders.
This patch fixes the issue of map polygons not being interactive
on their borders.
Task-number: QTBUG-67765
Change-Id: I7c571e57b9f1d26203f3e5857d47e85380281b28
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/location/declarativemaps/qdeclarativepolylinemapitem_p.h')
-rw-r--r-- | src/location/declarativemaps/qdeclarativepolylinemapitem_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/location/declarativemaps/qdeclarativepolylinemapitem_p.h b/src/location/declarativemaps/qdeclarativepolylinemapitem_p.h index a34acad4..ca01de12 100644 --- a/src/location/declarativemaps/qdeclarativepolylinemapitem_p.h +++ b/src/location/declarativemaps/qdeclarativepolylinemapitem_p.h @@ -100,6 +100,8 @@ public: void clearSource(); + bool contains(const QPointF &point) const override; + QList<QList<QDoubleVector2D> > clipPath(const QGeoMap &map, const QList<QDoubleVector2D> &path, QDoubleVector2D &leftBoundWrapped); |