summaryrefslogtreecommitdiff
path: root/src/location/declarativemaps/qdeclarativepolylinemapitem_p.h
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2017-01-19 00:30:19 +0100
committerPaolo Angelelli <paolo.angelelli@qt.io>2017-01-30 09:29:09 +0000
commit0a5dd29d4b02a192ec7e691cf88f623152ce100b (patch)
tree9d1975b4cf1f61ed3aa56af8d98443632e8c21ba /src/location/declarativemaps/qdeclarativepolylinemapitem_p.h
parent1946896ace3f5fa8b6086fb416ea934fea387f12 (diff)
downloadqtlocation-0a5dd29d4b02a192ec7e691cf88f623152ce100b.tar.gz
Allow QGeoMap to render map items
Currently QtLocation Map items are always rendered by QtLocation, on top of what QGeoMap generates. This patch introduces a new private api call to QGeoMap, supportedMapItemTypes(), that is used to inform QtLocation to not render map items of those types, but rather pass them over to the QGeoMap, which will take care of the rendering. In this way, more advanced renderers can properly render map items, for example below labels or 3D buildings. Change-Id: I1c82d4f11d4dd44c3011926512520d62e26295d4 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/location/declarativemaps/qdeclarativepolylinemapitem_p.h')
-rw-r--r--src/location/declarativemaps/qdeclarativepolylinemapitem_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/location/declarativemaps/qdeclarativepolylinemapitem_p.h b/src/location/declarativemaps/qdeclarativepolylinemapitem_p.h
index abc1df2f..55703258 100644
--- a/src/location/declarativemaps/qdeclarativepolylinemapitem_p.h
+++ b/src/location/declarativemaps/qdeclarativepolylinemapitem_p.h
@@ -144,6 +144,7 @@ public:
bool contains(const QPointF &point) const Q_DECL_OVERRIDE;
const QGeoShape &geoShape() const Q_DECL_OVERRIDE;
+ QGeoMap::ItemType itemType() const Q_DECL_OVERRIDE;
QDeclarativeMapLineProperties *line();