Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-11228

The StateChangeScript at default state is not called when entering to default state

    XMLWordPrintable

Details

    • 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" }
              }
          }]
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            brasser Michael Brasser (closed Nokia identity) (Inactive)
            ankrats Antti Krats (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes