Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
4.7.1
-
None
-
Maemo 5 / N900
-
0619c12bfee40826034dbc31f9d398182a3aa49f
Description
When entering from "maximizedState" to "" (default) state, the StateChangeScript of the default state is not called.
The code below was working at the 5th of May Qt 4.7 binaries http://chaos.troll.no/~harald/qt4-maemo5-4.7/20100505/
but it doesen't work anymore at 4.7.0~git20100520 received from Extras-devel repository.
states: [ State { name: "" //default PropertyChanges { target: skin; x: 0; y: 0 } StateChangeScript { name: "scriptUnloadDemo"; script: Core.unloadDemo() } }, State { name: "maximizedState" PropertyChanges { target: gridItem; z: 1 } ParentChange { target: container; parent: demoChooser } PropertyChanges { target: container; x: 0; y: 0; width: parent.width; height: parent.height; opacity: 1; radius: 0; color: "black" } PropertyChanges { target: skin; x: 0; y: 0; opacity: 0.0 } StateChangeScript { name: "scriptLoadDemo"; script: Core.loadDemo() } PropertyChanges { target: demoHolder; opacity: 1 } PropertyChanges { target: sidePanel; opacity: 1} PropertyChanges { target: textEditor; opacity: 0 } StateChangeScript { name: "scriptStartDemo"; script: Core.startDemo() } } ] transitions: [ Transition { from: "maximizedState" to: "" reversible: false SequentialAnimation { ScriptAction { script: console.log("maximizedState -> default state") } PropertyAnimation { target: demoHolder; property: "opacity"; duration: 500 } ScriptAction { scriptName: "scriptUnloadDemo" } ParentAnimation { target: container PropertyAnimation { target: container; properties: "x,y,width,height,opacity,radius"; duration: 1000; easing.type: "InOutCubic" } } PropertyAnimation { target: skin; property: "opacity" } PropertyAction { target: container; property: "color" } PropertyAction { target: textEditor; property: "opacity" } PropertyAction { target: gridItem; property: "z" } } }]