tests/auto/declarative/qdeclarativestates/data/anchorChanges2.qml
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
       
     1 import Qt 4.7
       
     2 
       
     3 Rectangle {
       
     4     width: 200; height: 200
       
     5     Rectangle {
       
     6         id: myRect
       
     7         objectName: "MyRect"
       
     8         width: 50; height: 50
       
     9         color: "green";
       
    10         anchors.left: parent.left
       
    11         anchors.leftMargin: 5
       
    12     }
       
    13     states: State {
       
    14         name: "right"
       
    15         AnchorChanges {
       
    16             target: myRect;
       
    17             anchors.left: undefined
       
    18             anchors.right: parent.right
       
    19         }
       
    20     }
       
    21 }