tests/auto/declarative/qdeclarativestates/data/basicExtension.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     width: 100; height: 100
       
     5     color: "red"
       
     6     states: [
       
     7         State {
       
     8             name: "blue"
       
     9             PropertyChanges { target: myRectangle; color: "blue" }
       
    10         },
       
    11         State {
       
    12             name: "bordered"
       
    13             extend: "blue"
       
    14             PropertyChanges { target: myRectangle; border.width: 2 }
       
    15         }]
       
    16 }