summaryrefslogtreecommitdiff
path: root/src/location/declarativemaps/qgeomapitemgeometry_p.h
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2018-04-17 13:34:17 +0200
committerPaolo Angelelli <paolo.angelelli@qt.io>2018-04-19 11:46:01 +0000
commitbe8b7b6d62203f3d9749a6420cf3260f8be8f7fc (patch)
tree6e2a13ad71dfc5c6b881b9b125e34d4965e2bfea /src/location/declarativemaps/qgeomapitemgeometry_p.h
parentecc8182f6c6c8b1448a35de46c3f5598bbf35150 (diff)
downloadqtlocation-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/qgeomapitemgeometry_p.h')
-rw-r--r--src/location/declarativemaps/qgeomapitemgeometry_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/declarativemaps/qgeomapitemgeometry_p.h b/src/location/declarativemaps/qgeomapitemgeometry_p.h
index 1011cd0c..ab81ff0b 100644
--- a/src/location/declarativemaps/qgeomapitemgeometry_p.h
+++ b/src/location/declarativemaps/qgeomapitemgeometry_p.h
@@ -95,7 +95,7 @@ public:
return screenOutline_;
}
- inline bool contains(const QPointF &screenPoint) const {
+ virtual bool contains(const QPointF &screenPoint) const {
return screenOutline_.contains(screenPoint);
}