tests/auto/declarative/qdeclarativestates/data/basicBinding4.qml
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
       
     1 import Qt 4.7
       
     2 Rectangle {
       
     3     id: myRectangle
       
     4 
       
     5     property color sourceColor: "blue"
       
     6     width: 100; height: 100
       
     7     color: "red"
       
     8     states: [
       
     9         State {
       
    10             name: "blue"
       
    11             PropertyChanges { target: myRectangle; color: sourceColor }
       
    12         },
       
    13         State {
       
    14             name: "green"
       
    15             PropertyChanges { target: myRectangle; color: "green" }
       
    16         }]
       
    17 }