summaryrefslogtreecommitdiffstats
path: root/examples/declarative/webview/content/Mapping/map.html
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-03-23 02:04:41 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-03-23 02:04:41 (GMT)
commit9a41034cf05ad4c149e3a98dc8e39f5f6ad05d28 (patch)
tree1e1fb615c64666eb08d1a93c99f7fe80808958bc /examples/declarative/webview/content/Mapping/map.html
parentc3d8fef05b011a737ce15791e94aef84d27d1b8f (diff)
downloadQt-9a41034cf05ad4c149e3a98dc8e39f5f6ad05d28.zip
Qt-9a41034cf05ad4c149e3a98dc8e39f5f6ad05d28.tar.gz
Qt-9a41034cf05ad4c149e3a98dc8e39f5f6ad05d28.tar.bz2
Show loading progress
Task-number: QTBUG-9260
Diffstat (limited to 'examples/declarative/webview/content/Mapping/map.html')
-rwxr-xr-xexamples/declarative/webview/content/Mapping/map.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/declarative/webview/content/Mapping/map.html b/examples/declarative/webview/content/Mapping/map.html
index 72f426a..a8726fd 100755
--- a/examples/declarative/webview/content/Mapping/map.html
+++ b/examples/declarative/webview/content/Mapping/map.html
@@ -33,9 +33,14 @@
}
if (map)
req.bounds = map.getBounds()
+ window.qml.status = "Loading";
geocoder.geocode(req, function(results, status) {
- if (status == google.maps.GeocoderStatus.OK)
+ if (status == google.maps.GeocoderStatus.OK) {
+ window.qml.status = "Ready";
goToLatLng(results[0].geometry.location,results[0].geometry.bounds);
+ } else {
+ window.qml.status = "Error";
+ }
});
}
}