aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qmltest-blacklist/animators/Box.qml
blob: d32d0e7c8ef25795250ee6e386dc046bf2ef6eda (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
31
32
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

import QtQuick 2.2

Rectangle {
    id: box
    gradient: Gradient {
        GradientStop { position: 0.1; color: "red" }
        GradientStop { position: 0.9; color: "blue" }
    }
    width: 100
    height: 100
    anchors.centerIn: parent
    antialiasing: true

    property int rotationChangeCounter: 0
    onRotationChanged: ++rotationChangeCounter;

    property int scaleChangeCounter: 0
    onScaleChanged: ++scaleChangeCounter;

    property int opacityChangeCounter: 0
    onOpacityChanged: ++opacityChangeCounter

    property int xChangeCounter: 0;
    onXChanged: ++xChangeCounter;

    property int yChangeCounter: 0;
    onYChanged: ++yChangeCounter;

}