Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qmlvisual / webview / zooming / zooming.qml
1 import QtQuick 1.0
2 import QtWebKit 1.0
3
4 // Note that zooming is better done using zoomFactor and careful
5 // control of rendering to avoid excessive re-rendering during
6 // zoom animations. This test is written for simplicity.
7 WebView {
8     property string skip: "WebView tests not counting until resources allocated to WebView maintenance"
9     width: 200
10     height: 250
11     Behavior on x { NumberAnimation { } }
12     Behavior on y { NumberAnimation { } }
13     Behavior on scale { NumberAnimation { } }
14     url: "zooming.html"
15     preferredWidth: width
16     preferredHeight: height
17     onDoubleClick: {console.log(clickX,clickY);heuristicZoom(clickX,clickY,2)}
18     onZoomTo: {console.log(zoom);scale=zoom;x=width/2-centerX;y=height/2-centerY}
19 }