diff options
Diffstat (limited to 'demos/declarative/mediabrowser/content/LikeOMeter.qml')
-rw-r--r-- | demos/declarative/mediabrowser/content/LikeOMeter.qml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/demos/declarative/mediabrowser/content/LikeOMeter.qml b/demos/declarative/mediabrowser/content/LikeOMeter.qml new file mode 100644 index 0000000..68584a5 --- /dev/null +++ b/demos/declarative/mediabrowser/content/LikeOMeter.qml @@ -0,0 +1,13 @@ +<Item id="Container"> + <properties> + <Property name="rating" value="2"/> + </properties> + + <HorizontalLayout> + <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}"/> + </HorizontalLayout> +</Item> |