Initial commit
[qml-presentation-made-with-qml:qml-presentation-made-with-qml.git] / flickr / common / LikeOMeter.qml
1 import Qt 4.6
2
3 Item {
4     id: container
5
6     property int rating: 2
7
8     Row {
9         Star {
10             rating: 0
11             onClicked: { container.rating = rating }
12             on: container.rating >= 0
13         }
14         Star {
15             rating: 1
16             onClicked: { container.rating = rating }
17             on: container.rating >= 1
18         }
19         Star {
20             rating: 2
21             onClicked: { container.rating = rating }
22             on: container.rating >= 2
23         }
24         Star {
25             rating: 3
26             onClicked: { container.rating = rating }
27             on: container.rating >= 3
28         }
29         Star {
30             rating: 4
31             onClicked: { container.rating = rating }
32             on: container.rating >= 4
33         }
34     }
35 }