aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/debugger/qqmlenginedebugservice/data/rectangleWithTransitions.qml
blob: fee3f969b8f7e0ab27a4f80cc56b74b2120bcf8b (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
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

import QtQuick 2.0
Rectangle {
    id: rootRect
    width: 100
    states: [
        State {
            name: "state1"
            PropertyChanges {
                target: rootRect
                width: 200
            }
        }
    ]
    transitions: [
        Transition {
            from: "*"
            to: "state1"
            PropertyAnimation {
                target: rootRect
                property: "width"
                duration: 100
            }
        }
    ]
}