diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-08-11 15:28:20 +0200 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-08-20 10:52:50 +0000 |
commit | 367c49e91366aa9b13bc7d64209321168680841e (patch) | |
tree | 3c6dacaa42a0d97a2c651598bbb34c54eff073eb /src/location/declarativemaps/qdeclarativegeomap_p.h | |
parent | 0a9ef37972aed19ec4451d0a0e24bfacc56bded3 (diff) |
Move management of QDeclarativeGeoMap camera data into QGeoMap
This patch makes QDeclarativeGeoMap always refer to QGeoMap
when it comes to setting and getting camera data properties.
The signal emission for each of these properties is also deferred
to the reception of QGeoMap::cameraDataChanged.
This patch also enable plugins to enforce tilt ranges per zoom,
updating the tilt value (as well as any other camera data value)
on their own.
Change-Id: Icc16645ea53fa2b53b33530f802ce390a2479d39
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Diffstat (limited to 'src/location/declarativemaps/qdeclarativegeomap_p.h')
-rw-r--r-- | src/location/declarativemaps/qdeclarativegeomap_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeomap_p.h b/src/location/declarativemaps/qdeclarativegeomap_p.h index 02379411..f59f6f54 100644 --- a/src/location/declarativemaps/qdeclarativegeomap_p.h +++ b/src/location/declarativemaps/qdeclarativegeomap_p.h @@ -271,6 +271,7 @@ private Q_SLOTS: void onSupportedMapTypesChanged(); void onCameraCapabilitiesChanged(const QGeoCameraCapabilities &oldCameraCapabilities); void onAttachedCopyrightNoticeVisibilityChanged(); + void onCameraDataChanged(const QGeoCameraData &cameraData); private: void setupMapView(QDeclarativeGeoMapItemView *view); |