summaryrefslogtreecommitdiffstats
path: root/demos/declarative/flickr/common/LikeOMeter.qml
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2009-08-25 01:20:08 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2009-08-25 01:20:08 (GMT)
commit7f41d39c293e1bd013acc0e79af2aa66e1f9e4d0 (patch)
tree01569d474f4eee0a097fdb4a5be8b39a09399f52 /demos/declarative/flickr/common/LikeOMeter.qml
parente1081c88616fea20fed343e258c98da2a669d9f1 (diff)
downloadQt-7f41d39c293e1bd013acc0e79af2aa66e1f9e4d0.zip
Qt-7f41d39c293e1bd013acc0e79af2aa66e1f9e4d0.tar.gz
Qt-7f41d39c293e1bd013acc0e79af2aa66e1f9e4d0.tar.bz2
Mobile version of Flickr demo in flickr-mobile.qml.
Diffstat (limited to 'demos/declarative/flickr/common/LikeOMeter.qml')
-rw-r--r--demos/declarative/flickr/common/LikeOMeter.qml35
1 files changed, 35 insertions, 0 deletions
diff --git a/demos/declarative/flickr/common/LikeOMeter.qml b/demos/declarative/flickr/common/LikeOMeter.qml
new file mode 100644
index 0000000..754dbb1
--- /dev/null
+++ b/demos/declarative/flickr/common/LikeOMeter.qml
@@ -0,0 +1,35 @@
+import Qt 4.6
+
+Item {
+ id: Container
+
+ property int rating: 2
+
+ Row {
+ Star {
+ rating: 0
+ onClicked: { Container.rating = rating }
+ on: Container.rating >= 0
+ }
+ Star {
+ rating: 1
+ onClicked: { Container.rating = rating }
+ on: Container.rating >= 1
+ }
+ Star {
+ rating: 2
+ onClicked: { Container.rating = rating }
+ on: Container.rating >= 2
+ }
+ Star {
+ rating: 3
+ onClicked: { Container.rating = rating }
+ on: Container.rating >= 3
+ }
+ Star {
+ rating: 4
+ onClicked: { Container.rating = rating }
+ on: Container.rating >= 4
+ }
+ }
+}