diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2012-09-26 10:49:56 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-09-27 15:37:57 +0200 |
commit | a8b637e9b70bb420690523cd3f77f139813deec8 (patch) | |
tree | 4eba1ed7253baaddf76581312bf0318f5293e055 /tests/auto/declarative/qdeclarativewebview/resources/webviewtestdefault.qml | |
parent | 3ef5a2374862c82076427ca42e334aaaeb21ca45 (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/webviewtestdefault.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativewebview/resources/webviewtestdefault.qml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativewebview/resources/webviewtestdefault.qml b/tests/auto/declarative/qdeclarativewebview/resources/webviewtestdefault.qml new file mode 100644 index 00000000..b26eea61 --- /dev/null +++ b/tests/auto/declarative/qdeclarativewebview/resources/webviewtestdefault.qml @@ -0,0 +1,22 @@ +import QtQuick 1.0 +import QtWebKit 1.0 + +Flickable { + id: flick + width: 640 + height: 400 + clip: true + contentWidth: myweb.width; contentHeight: myweb.height + property alias myurl: myweb.url + property alias prefHeight: myweb.preferredHeight + property alias prefWidth: myweb.preferredWidth + property url testUrl; + WebView { + id: myweb + url: testUrl; + smooth: false + scale: 1.0 + pressGrabTime: 1000 + focus: true + } +} |