1 import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
2 //import "../UIConstants.js" as Const
7 property bool hidden: false
8 property int easingType: Easing.InOutCubic
11 state: hidden ? "closed" : "opened"
14 Component.onCompleted: {
15 if(hidden) state = "closed";
19 root.state = "opened";
23 root.state = "closed";
29 PropertyChanges { target: root; y: 0}
30 PropertyChanges { target: root; visible: true }
34 PropertyChanges { target: root; y: root.height }
35 //PropertyChanges { target: root; visible: false }
39 transitions: Transition {
40 NumberAnimation { properties: "y"; easing.type: root.easingType;
41 duration: root.speed*root.height/2;
46 if(state=="closed") time.start()
51 interval: root.speed*root.height/2