summaryrefslogtreecommitdiff
path: root/testdeclarativewatchlet.qml
blob: 20b66d578bdcba62c52de8e53e073600c51fd90c (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
27
28
import QtQuick 1.0
import com.javispedro.sowatch 1.0

Rectangle {
	width: 96
	height: 96

	Text {
		text: watch.model
	}

	Image {
		anchors.centerIn: parent
		source: "qt.png"

		transform: Rotation {
			axis { x : 0; y : 1; z: 0 }
			origin { x: width / 4; y: 0; }
			RotationAnimation on angle {
				loops: Animation.Infinite
				running: watch.active
				duration: 10000
				from: 0
				to: 360
			}
		}
	}
}