diff options
author | Michal Klocek <michal.klocek@theqtcompany.com> | 2016-03-01 16:24:40 +0100 |
---|---|---|
committer | Michal Klocek <michal.klocek@theqtcompany.com> | 2016-03-17 06:56:11 +0000 |
commit | de165175549642c7fefa901d41ee96ef0702879c (patch) | |
tree | c89145289e0a7147870bef06bfb8755440837d10 /tests/auto/auto.pro | |
parent | 3d8da84e368f87386f14287b10fb6d08e3ce2b48 (diff) | |
download | qtlocation-de165175549642c7fefa901d41ee96ef0702879c.tar.gz |
Remove QGeoMapController from QGeoMap
Refactor code to use QGeoCameraData directly. All functionality related
to zoom, center boundary checks are now handled in QDeclaratvieGeoMap class.
This makes handling of center and zoomLevel properties much simpler and
less error prone, since camera data can not be modified along the
call stack. As result we avoid forwarding change signals back and forth:
* qgeodeclarativegeomap::setCenter -> qgeomapcontroller::setCenter
* qgeomapcontroller::setCenter -> qgeomap::setCameraData
* qgeomap::setCameraData -> qgeomacontroller::cameraDataChanged
* qgeomapcontroller::cameraDataChanged -> emit qdecalartivegeomap::centerChanged
Call always setCenter and setZoomLevel on qdeclarativegeomap
instance instead.
Introduce initialize() method to handle cases where map plugin is loaded
and scenegraph geometery is not yet set. This is required to correctly
handle new boundary checks to limit grey areas.
Change-Id: I6066cefd4a648dc76333dc241d1f261451a32e9c
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'tests/auto/auto.pro')
-rw-r--r-- | tests/auto/auto.pro | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro index 81013b2c..e3236deb 100644 --- a/tests/auto/auto.pro +++ b/tests/auto/auto.pro @@ -53,7 +53,6 @@ qtHaveModule(location) { qgeotiledmap \ qgeotilespec \ qgeoroutexmlparser \ - qgeomapcontroller \ maptype \ nokia_services \ qgeocameratiles |