summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2015-05-20 09:32:41 +0200
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-05-26 13:23:38 +0000
commita78198c12374724857f33fd8c7771984d4b7ae4e (patch)
tree4aca4a07d381be3537eb2063997da26dbd3e8070 /examples
parentbeadca0d5377136c18abdf8efabe47cf396598ff (diff)
downloadqtlocation-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.qml10
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 {