From b49ccb384eb37f821c06c1e68dd3ca11837f54c6 Mon Sep 17 00:00:00 2001 From: No'am Rosenthal Date: Tue, 5 Jul 2011 14:02:19 -0700 Subject: Use Uuids instead of int IDs --- examples/qmlapp/qmlapp.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/qmlapp/qmlapp.qml b/examples/qmlapp/qmlapp.qml index c8d6cae..06f9cdc 100644 --- a/examples/qmlapp/qmlapp.qml +++ b/examples/qmlapp/qmlapp.qml @@ -10,13 +10,15 @@ Rectangle { useSecret: false onRequest: { var data = JSON.parse(request); + txt.text = data.a; response.send(JSON.stringify({b:'This is a response from QML'})); } } WebView { id: webView - anchors.top: parent.top + anchors.top: txt.bottom + height: 200 settings.localContentCanAccessRemoteUrls: true settings.developerExtrasEnabled: true url: "index.html?baseUrl=" + webChannel.baseUrl @@ -24,6 +26,6 @@ Rectangle { Text { id: txt - anchors.top: webView.bottom + anchors.top: parent.top } } -- cgit v1.2.1