Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qmlvisual / animation / qtbug10586 / qtbug10586.qml
1 import QtQuick 1.0
2
3 /* This test checks that animations do occur while the flickable is flicking */
4 Rectangle {
5     width: 200
6     height: 400
7     Flickable {
8         id: flick
9         anchors.fill: parent
10         contentWidth: 1000; contentHeight: parent.height
11         Rectangle {
12             border.color: "black"
13             border.width: 10
14             width: 1000; height: 1000
15         }
16     }
17     Rectangle {
18         color: "red"
19         width: 100; height: 100
20         y: flick.contentX < 10 ? 300 : 0
21         Behavior on y { NumberAnimation {} }
22     }
23 }