diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-05-20 09:32:41 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-05-26 13:23:38 +0000 |
commit | a78198c12374724857f33fd8c7771984d4b7ae4e (patch) | |
tree | 4aca4a07d381be3537eb2063997da26dbd3e8070 /examples | |
parent | beadca0d5377136c18abdf8efabe47cf396598ff (diff) | |
download | qtlocation-a78198c12374724857f33fd8c7771984d4b7ae4e.tar.gz |
Add visible region support to Map
Change-Id: I340f1ad3a623a04a1846c5a57ad2bbcb9e253556
Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/location/planespotter/planespotter.qml | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/examples/location/planespotter/planespotter.qml b/examples/location/planespotter/planespotter.qml index 59b8b00b..91d9e056 100644 --- a/examples/location/planespotter/planespotter.qml +++ b/examples/location/planespotter/planespotter.qml @@ -185,15 +185,7 @@ Window { } //! [CppPlane2] - onWidthChanged: { - if (width > 0) - mapOfEurope.fitViewportToGeoShape(viewOfEurope) - } - - onHeightChanged: { - if (height > 0) - mapOfEurope.fitViewportToGeoShape(viewOfEurope) - } + visibleRegion: viewOfEurope } Rectangle { |