diff options
author | David Boddie <david.boddie@nokia.com> | 2010-11-25 12:56:29 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2010-11-25 12:56:29 (GMT) |
commit | dcce5c796e5cd5cb090f1c395e483269bab01566 (patch) | |
tree | dc0a3049bd975364390542c71715734457bd4be7 /tests/auto | |
parent | a0be2bb3f5a7f71f1e77ca7b8907e49b8e16bef3 (diff) | |
download | Qt-dcce5c796e5cd5cb090f1c395e483269bab01566.zip Qt-dcce5c796e5cd5cb090f1c395e483269bab01566.tar.gz Qt-dcce5c796e5cd5cb090f1c395e483269bab01566.tar.bz2 |
Doc: Fixed whitespace.
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/declarative/qmlvisual/webview/flickable/flickweb.qml | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/tests/auto/declarative/qmlvisual/webview/flickable/flickweb.qml b/tests/auto/declarative/qmlvisual/webview/flickable/flickweb.qml index 6063226..af09389 100644 --- a/tests/auto/declarative/qmlvisual/webview/flickable/flickweb.qml +++ b/tests/auto/declarative/qmlvisual/webview/flickable/flickweb.qml @@ -1,35 +1,35 @@ -import QtQuick 1.0
-import QtWebKit 1.0
-
-Flickable {
- id: flickable
- width: 320
- height: 200
- contentWidth: Math.max(flickable.width,webView.width)
- contentHeight: Math.max(flickable.height,webView.height)
- pressDelay: 100
-
- WebView {
- id: webView
- transformOrigin: Item.TopLeft
- smooth: false // We don't want smooth scaling, since we only scale during (fast) transitions
- url: "test.html"
- preferredWidth: flickable.width
- preferredHeight: flickable.height
- contentsScale: 1
- onContentsSizeChanged: {
- // zoom out
- contentsScale = Math.min(1,flickable.width / contentsSize.width)
- }
- }
-
- Rectangle {
- id: button
- width: 50; height: 50; color: "red"
- MouseArea {
- anchors.fill: parent
- onPressed: button.color = "blue"
- onReleased: button.color = "green"
- }
- }
-}
+import QtQuick 1.0 +import QtWebKit 1.0 + +Flickable { + id: flickable + width: 320 + height: 200 + contentWidth: Math.max(flickable.width,webView.width) + contentHeight: Math.max(flickable.height,webView.height) + pressDelay: 100 + + WebView { + id: webView + transformOrigin: Item.TopLeft + smooth: false // We don't want smooth scaling, since we only scale during (fast) transitions + url: "test.html" + preferredWidth: flickable.width + preferredHeight: flickable.height + contentsScale: 1 + onContentsSizeChanged: { + // zoom out + contentsScale = Math.min(1,flickable.width / contentsSize.width) + } + } + + Rectangle { + id: button + width: 50; height: 50; color: "red" + MouseArea { + anchors.fill: parent + onPressed: button.color = "blue" + onReleased: button.color = "green" + } + } +} |