summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/visual/webview/zooming/resolution.qml
blob: 8336c0ffe7447414c9c2ecb4c4b6fb66e19e030b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import Qt 4.6

WebView {
    width: 200 * zoomFactor
    height: 250 * zoomFactor
    scale: 1/zoomFactor
    url: "resolution.html"
    zoomFactor:
        SequentialAnimation {
            running: true
            repeat: true
            NumberAnimation { from: 1; to: 0.25; duration: 2000 }
            NumberAnimation { from: 0.25; to: 1; duration: 2000 }
            NumberAnimation { from: 1; to: 5; duration: 2000 }
            NumberAnimation { from: 5; to: 1; duration: 2000 }
        }
}