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"
13 Component.onCompleted: {
14 if(hidden) state = "closed";
18 root.state = "opened";
22 root.state = "closed";
28 PropertyChanges { target: root; y: 0}
29 PropertyChanges { target: root; visible: true }
33 PropertyChanges { target: root; y: root.height }
37 transitions: Transition {
38 NumberAnimation { properties: "y"; easing.type: root.easingType;
39 duration: root.speed*root.height/2;
44 if(state=="closed") time.start()
49 interval: root.speed*root.height/2