tests/auto/declarative/qdeclarativestates/data/basicExtension.qml
changeset 30 5dc02b23752f
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
       
     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 }