summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlvisual/webview/embedding/egg.qml
blob: c569c9a62c7df125effcfdd1092d17727a7b2bab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import Qt 4.7

Item {
    property variant period : 250
    property variant color : "black"
    id: root

    Item {
        x: root.width/2
        y: root.height/2
        Rectangle {
            radius: width/2
            color: root.color
            x: -width/2
            y: -height/2
            width: root.width*1.5
            height: root.height*1.5
        }
        rotation: NumberAnimation {
            from: 0
            to: 360
            repeat: true
            duration: root.period
        }
    }
}