diff options
author | Anselmo Lacerda S. de Melo <anselmo.melo@openbossa.org> | 2011-03-03 17:08:53 -0300 |
---|---|---|
committer | Anselmo Lacerda S. de Melo <anselmo.melo@openbossa.org> | 2011-03-03 19:21:03 -0300 |
commit | 3d1495cc84ce8a274cbda6023d56e75de671eed9 (patch) | |
tree | 1ba120321ad648b78f63b398f05fb8eca0a99c36 /CoffeeTweed/Tray.qml | |
parent | 8943d0694a0375b23756cd47c32d70eacd8298e5 (diff) |
CoffeeTweed
Signed-off-by: Anselmo Lacerda S. de Melo <anselmo.melo@openbossa.org>
Diffstat (limited to 'CoffeeTweed/Tray.qml')
-rw-r--r-- | CoffeeTweed/Tray.qml | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/CoffeeTweed/Tray.qml b/CoffeeTweed/Tray.qml deleted file mode 100644 index 608317a..0000000 --- a/CoffeeTweed/Tray.qml +++ /dev/null @@ -1,64 +0,0 @@ -import Qt 4.7 - -Item { - id:cuptray - width: 330; height: 110; - - Tray_model{ - id: traymodel - } - - function add_cup(indx) { - var cupindx = indx -1; - traymodel.set(cupindx, { cupstate: "display" }); - } - - function remove_cup(indx) { - var cupindx = indx; - traymodel.set(cupindx, { cupstate: "hide" }); - } - - Component { - id: emptycup - Item { - id: empty_cup - width: 69; height: 67 - x: pos_x; y: pos_y; z: pos_z - opacity: 0 - state: cupstate - - Image { source: img_src } - - Behavior on opacity { NumberAnimation { duration: 400 } } - - states: [ - State { - name: "display" - }, - State { - name: "hide" - } - ] - transitions: [ - Transition { - from: "*"; to: "hide" - SequentialAnimation { - PropertyAnimation { target: empty_cup; property: "opacity"; to: 0; } - } - }, - Transition { - from: "hide"; to: "display" - SequentialAnimation { - PropertyAnimation { target: empty_cup; property: "opacity"; to: 1; } - } - } - ] - } - } - - Repeater { - model: traymodel - delegate: emptycup - } - -} |