summaryrefslogtreecommitdiff
path: root/testdeclarativewatchlet.qml
blob: 08a3b0666efb3e3acb0d16a43acb07134839dc3c (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import QtQuick 1.0
import com.javispedro.sowatch 1.0

Rectangle {
	width: 96
	height: 96

	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: true
				duration: 10000
				from: 0
				to: 360
			}
		}
	}

	/*color: "white"

	Rectangle {
		width: 90
		height: 90

		color: "black"

		Rectangle {
			width: 10
			height: 10

			x: 0
			y: 0

			SequentialAnimation on y {
				loops: Animation.Infinite
				NumberAnimation { from: 0; to: 60; duration: 1000 }
				NumberAnimation { from: 60; to: 0; duration: 1000 }
			}
		}

		Rectangle {
			width: 10
			height: 10

			x: 80
			y: 00

			SequentialAnimation on y {
				loops: Animation.Infinite
				NumberAnimation { from: 0; to: 60; duration: 1000 }
			}
		}

		Rectangle {
			width: 10
			height: 10
			x: 10
			y: 10

			SequentialAnimation on visible {
				loops: Animation.Infinite
				PropertyAnimation { to: false; duration: 1000 }
				PropertyAnimation { to: true; duration: 1000 }
			}
		}

		Rectangle {
			id: big1
			width: 20
			height: 20
			x: 40
			y: 40

			color: "white"
			visible: false
		}

		Text {
			id: name
			x: 20
			text: "hello"
			color: "white"

			SequentialAnimation on y {
				loops: Animation.Infinite
				NumberAnimation { from: 0; to: 60; duration: 1000 }
				NumberAnimation { from: 60; to: 0; duration: 1000 }
			}
		}

		Connections {
			target: watch
			onButtonPressed: {
				console.log(button);
			}
		}
	}*/
}