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