diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-06-06 15:37:49 +0200 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-08-03 10:33:11 +0000 |
commit | 61776400fe4b18a62fd9b4880fc1e799cf0f2cde (patch) | |
tree | 1fbc21b5fb4db9689008c7818e40a027354bcd9d /src/location/declarativemaps/qdeclarativegeomap_p.h | |
parent | 11da6dec6d47e7670482ed146cced92573cc0b85 (diff) | |
download | qtlocation-61776400fe4b18a62fd9b4880fc1e799cf0f2cde.tar.gz |
Add setBearing overload to rotate around a coordinate
This patch adds an overload for setBearing in QDeclarativeGeoMap to
rotate the map around a specific QGeoCoordinate.
[ChangeLog][QtLocation][QDeclarativeGeoMap] Added setBearing overload to
rotate the map around a given QGeoCoordinate.
Change-Id: I5d2428d852b0c3537f4a1cdb1925c059788c45c5
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/declarativemaps/qdeclarativegeomap_p.h')
-rw-r--r-- | src/location/declarativemaps/qdeclarativegeomap_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeomap_p.h b/src/location/declarativemaps/qdeclarativegeomap_p.h index f07a2e7f..2f20e3ae 100644 --- a/src/location/declarativemaps/qdeclarativegeomap_p.h +++ b/src/location/declarativemaps/qdeclarativegeomap_p.h @@ -155,6 +155,8 @@ public: QQmlListProperty<QDeclarativeGeoMapType> supportedMapTypes(); + Q_INVOKABLE void setBearing(qreal bearing, const QGeoCoordinate &coordinate); + Q_INVOKABLE void removeMapItem(QDeclarativeGeoMapItemBase *item); Q_INVOKABLE void addMapItem(QDeclarativeGeoMapItemBase *item); |