tests/auto/declarative/qdeclarativestates/data/basicChanges4.qml
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
       
     1 import Qt.test 1.0
       
     2 import Qt 4.7
       
     3 
       
     4 MyRectangle {
       
     5     id: rect
       
     6     width: 100; height: 100
       
     7     color: "red"
       
     8 
       
     9     states: State {
       
    10         name: "aBlueDay"
       
    11         PropertyChanges {
       
    12             target: rect
       
    13             onPropertyWithNotifyChanged: { rect.color = "blue"; }
       
    14         }
       
    15     }
       
    16 
       
    17     Component.onCompleted: rect.state = "aBlueDay"
       
    18 }
       
    19