tests/auto/declarative/qdeclarativebehaviors/data/groupProperty.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     width: 400
       
     4     height: 400
       
     5     Rectangle {
       
     6         id: rect
       
     7         objectName: "MyRect"
       
     8         width: 100; height: 100; color: "green"
       
     9         Behavior on pos { PropertyAnimation { duration: 500; } }
       
    10     }
       
    11     MouseArea {
       
    12         id: clicker
       
    13         anchors.fill: parent
       
    14     }
       
    15     states: State {
       
    16         name: "moved"
       
    17         when: clicker.pressed
       
    18         PropertyChanges {
       
    19             target: rect
       
    20             pos: Qt.point(200,0);
       
    21         }
       
    22     }
       
    23 }