diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-03-23 02:04:41 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-03-23 02:04:41 (GMT) |
commit | 9a41034cf05ad4c149e3a98dc8e39f5f6ad05d28 (patch) | |
tree | 1e1fb615c64666eb08d1a93c99f7fe80808958bc /examples/declarative/webview/googleMaps.qml | |
parent | c3d8fef05b011a737ce15791e94aef84d27d1b8f (diff) | |
download | Qt-9a41034cf05ad4c149e3a98dc8e39f5f6ad05d28.zip Qt-9a41034cf05ad4c149e3a98dc8e39f5f6ad05d28.tar.gz Qt-9a41034cf05ad4c149e3a98dc8e39f5f6ad05d28.tar.bz2 |
Show loading progress
Task-number: QTBUG-9260
Diffstat (limited to 'examples/declarative/webview/googleMaps.qml')
-rw-r--r-- | examples/declarative/webview/googleMaps.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/declarative/webview/googleMaps.qml b/examples/declarative/webview/googleMaps.qml index a04fecb..a0926f5 100644 --- a/examples/declarative/webview/googleMaps.qml +++ b/examples/declarative/webview/googleMaps.qml @@ -21,6 +21,7 @@ Map { radius: 5 anchors.bottom: parent.bottom anchors.bottomMargin: 5 + opacity: map.status == "Ready" ? 1 : 0 x: 70 TextInput { id: input @@ -29,4 +30,12 @@ Map { Keys.onReturnPressed: map.address = input.text } } + Text { + id: loading + anchors.centerIn: parent + text: map.status == "Error" ? "Error" : "Loading" + opacity: map.status == "Ready" ? 0 : 1 + font.pixelSize: 30 + Behavior on opacity {NumberAnimation{}} + } } |