summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlvisual/webview/javascript/windowObjects.qml
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-03-29 03:38:10 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-03-29 03:38:10 (GMT)
commitf183932778932a8c2fc5ac38c753893eaeb99575 (patch)
tree392acf9ef4e355667517d41b9443f957ba14a7e8 /tests/auto/declarative/qmlvisual/webview/javascript/windowObjects.qml
parent123172f61f1f1bba6389850835ec946ca6ee82de (diff)
parent059a91650d7fdb7491108c07e3eda0e79e2d9203 (diff)
downloadQt-f183932778932a8c2fc5ac38c753893eaeb99575.zip
Qt-f183932778932a8c2fc5ac38c753893eaeb99575.tar.gz
Qt-f183932778932a8c2fc5ac38c753893eaeb99575.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Conflicts: doc/src/declarative/examples.qdoc doc/src/declarative/focus.qdoc doc/src/declarative/modules.qdoc doc/src/declarative/network.qdoc doc/src/declarative/qdeclarativedebugging.qdoc doc/src/declarative/qdeclarativei18n.qdoc doc/src/declarative/qmlruntime.qdoc doc/src/declarative/tutorial.qdoc tests/auto/declarative/qdeclarativeimage/tst_qdeclarativeimage.cpp
Diffstat (limited to 'tests/auto/declarative/qmlvisual/webview/javascript/windowObjects.qml')
-rw-r--r--tests/auto/declarative/qmlvisual/webview/javascript/windowObjects.qml27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlvisual/webview/javascript/windowObjects.qml b/tests/auto/declarative/qmlvisual/webview/javascript/windowObjects.qml
new file mode 100644
index 0000000..8c52aff
--- /dev/null
+++ b/tests/auto/declarative/qmlvisual/webview/javascript/windowObjects.qml
@@ -0,0 +1,27 @@
+import Qt 4.6
+import org.webkit 1.0
+
+Column {
+ WebView {
+ width: 200
+ height: 200
+ url: "test-objects.html"
+ javaScriptWindowObjects:
+ QtObject {
+ property string text: btntext.text
+ WebView.windowObjectName: "qmltext"
+ }
+ }
+ Row {
+ Text { text: "Input:" }
+ Rectangle {
+ width: btntext.width+10
+ height: btntext.height+10
+ border.color: "black"
+ TextInput {
+ id: btntext
+ text: "Blah"
+ }
+ }
+ }
+}