summaryrefslogtreecommitdiffstats
path: root/CoffeeTweed/Tray.qml
diff options
context:
space:
mode:
Diffstat (limited to 'CoffeeTweed/Tray.qml')
-rw-r--r--CoffeeTweed/Tray.qml64
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
- }
-
-}