summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativewebview/resources/propertychanges.qml
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2012-09-26 10:49:56 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-09-27 15:37:57 +0200
commita8b637e9b70bb420690523cd3f77f139813deec8 (patch)
tree4eba1ed7253baaddf76581312bf0318f5293e055 /tests/auto/declarative/qdeclarativewebview/resources/propertychanges.qml
parent3ef5a2374862c82076427ca42e334aaaeb21ca45 (diff)
Add QtQuick1 WebKit integration (from QtWebKit module)
This adds the QML1 QDeclarativeWebView integration to the default build (it was added a while ago) as well as the unit tests. Change-Id: I7324f5a3b00716d4b300e8c11d9ea3b8b9577da3 Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Diffstat (limited to 'tests/auto/declarative/qdeclarativewebview/resources/propertychanges.qml')
-rw-r--r--tests/auto/declarative/qdeclarativewebview/resources/propertychanges.qml34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativewebview/resources/propertychanges.qml b/tests/auto/declarative/qdeclarativewebview/resources/propertychanges.qml
new file mode 100644
index 00000000..8210e85a
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativewebview/resources/propertychanges.qml
@@ -0,0 +1,34 @@
+import QtQuick 1.0
+import QtWebKit 1.0
+
+Item {
+ width: 240
+ height: 160
+ Grid {
+ anchors.fill: parent
+ objectName: "newWindowParent"
+ id: newWindowParent
+ }
+
+ Row {
+ anchors.fill: parent
+ id: oldWindowParent
+ objectName: "oldWindowParent"
+ }
+
+ Loader {
+ sourceComponent: webViewComponent
+ }
+ Component {
+ id: webViewComponent
+ WebView {
+ id: webView
+ objectName: "webView"
+ newWindowComponent: webViewComponent
+ newWindowParent: oldWindowParent
+ url: "basic.html"
+ renderingEnabled: true
+ pressGrabTime: 200
+ }
+ }
+}