diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-01-12 18:23:28 +0100 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-01-25 12:27:08 +0000 |
commit | d8a7da2c00d9b292e56f28cf2df4f191e6edce2c (patch) | |
tree | 8184e332c8836303100e906bfac183c16adaa58a /src/location/maps/qgeomap_p.h | |
parent | 3aca8077a21d4219b62a03bdc790a2019eb072cc (diff) | |
download | qtlocation-d8a7da2c00d9b292e56f28cf2df4f191e6edce2c.tar.gz |
Introduce QGeoMapObject
QGeoMapObject is a new class of map item, not deriving anymore from
QQuickItem, and designed to be more lightweight, and, most importantly,
to be easily backable by SDK-specific implementations, so to act as
an as thin as possible wrapper around those.
QGeoMapObject is intended to be the base class for this type of items.
This patch provides no mean to dynamically add/remove GeoMapObjects.
The intended way to do it is by using a MapObjectView, coming
initially with the Qt.labs.location extra plugin.
Change-Id: I8d6a45a4a32059c7ec4d904f75352e176bffda1e
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/maps/qgeomap_p.h')
-rw-r--r-- | src/location/maps/qgeomap_p.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/location/maps/qgeomap_p.h b/src/location/maps/qgeomap_p.h index 40d520fe..7c7825f2 100644 --- a/src/location/maps/qgeomap_p.h +++ b/src/location/maps/qgeomap_p.h @@ -54,6 +54,7 @@ #include <QtCore/QObject> #include <QtPositioning/private/qdoublevector2d_p.h> #include <QtLocation/private/qgeoprojection_p.h> +#include <QtLocation/qgeoroute.h> QT_BEGIN_NAMESPACE @@ -65,6 +66,7 @@ class QSGNode; class QQuickWindow; class QGeoMapParameter; class QDeclarativeGeoMapItemBase; +class QGeoMapObject; class Q_LOCATION_PRIVATE_EXPORT QGeoMap : public QObject { @@ -122,6 +124,10 @@ public: void removeMapItem(QDeclarativeGeoMapItemBase *item); void clearMapItems(); + bool createMapObjectImplementation(QGeoMapObject *obj); + QList<QGeoMapObject *> mapObjects() const; + + virtual QString copyrightsStyleSheet() const; virtual void setAcceptedGestures(bool pan, bool flick, bool pinch, bool rotate, bool tilt); virtual bool handleEvent(QEvent *event); |