tests/auto/declarative/qdeclarativestates/data/anchorRewindBug.qml
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 01:19:32 +0300
changeset 37 758a864f9613
parent 33 3e2da88830cd
permissions -rw-r--r--
Revision: 201037 Kit: 201039

import Qt 4.7
Rectangle {
    id: container
    color: "red"
    height: 200
    width: 200
    Column {
        id: column
        objectName: "column"
        anchors.left: container.right
        anchors.bottom: container.bottom

        Rectangle {
            id: rectangle
            color: "blue"
            height: 100
            width: 200
        }
        Rectangle {
            color: "blue"
            height: 100
            width: 200
        }
    }
    states: State {
        name: "reanchored"
        AnchorChanges {
            target: column
            anchors.left: undefined
            anchors.right: container.right
        }
        PropertyChanges {
            target: rectangle
            opacity: 0
        }
    }
}