aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickbehaviors/data/runningTrue.qml
blob: 4fd1136f3a27ac0c4d11f4bc74e60833ba48ca2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import QtQuick 2.0

Rectangle {
    id: root
    width:200; height:200

    property real myValue: 0

    Rectangle {
        anchors.centerIn: parent
        width: 100
        height: 100
        color: "green"
        smooth: true
        rotation: myValue
        Behavior on rotation {
            RotationAnimation { id: rotAnim; objectName: "rotAnim"; direction: RotationAnimation.Shortest }
        }
    }
}