diff options
Diffstat (limited to 'CoffeeTweed/Counter_cupsDown.qml')
-rw-r--r-- | CoffeeTweed/Counter_cupsDown.qml | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/CoffeeTweed/Counter_cupsDown.qml b/CoffeeTweed/Counter_cupsDown.qml deleted file mode 100644 index 9507390..0000000 --- a/CoffeeTweed/Counter_cupsDown.qml +++ /dev/null @@ -1,58 +0,0 @@ -import Qt 4.7 - -Item { - width: 100; height: 90; - state: "default" - - Text { - id: cupsDown_counter - x: 20; y: 0 - width: parent.width - - text: "0" - color: "#999"; font.bold: true; font.pixelSize: 50; smooth: true; horizontalAlignment: "AlignRight" - - Behavior on opacity { - NumberAnimation { duration: 300;} - } - } - - function reset_counter_state() { - counter_cupsDown.state = "default" - } - - states: [ - State { - name: "default" - }, - State { - name: "add_count" - }, - State { - name: "remove_count" - } - ] - - transitions: [ - Transition { - from: "default"; to: "add_count" - SequentialAnimation { - PropertyAnimation { target: cupsDown_counter; property: "opacity"; to: 0; } - PropertyAction{ target: cupsDown_counter; property: "text"; value: coffee_count } - PauseAnimation { duration: 1500; } - PropertyAnimation { target: cupsDown_counter; property: "opacity"; to: 1; } - ScriptAction { script: reset_counter_state() } - } - }, - Transition { - from: "default"; to: "remove_count" - SequentialAnimation { - PropertyAnimation { target: cupsDown_counter; property: "opacity"; to: 0; } - PropertyAction{ target: cupsDown_counter; property: "text"; value: coffee_count } - PauseAnimation { duration: 300; } - PropertyAnimation { target: cupsDown_counter; property: "opacity"; to: 1; } - ScriptAction { script: reset_counter_state() } - } - } - ] -} |