aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickstates/data/anchorRewindSize.qml
blob: 8fbae05c6de1595b63c1a4096718150611d3c46d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import QtQuick

Item {
    id: root
    width: 400
    height: 400
    property bool changeState: false
    Item {
        id: outer
        anchors.fill: parent
        Item {
            id: inner
            width: 100
            height: 100
            anchors.left: outer.left
            anchors.top: outer.top
        }
        states: [
            State {
                when: root.changeState
                AnchorChanges {
                    target: inner
                    anchors.right: outer.right
                    anchors.bottom: outer.bottom
                }
            }
        ]
    }
}