aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/moveRegVoid.qml
blob: f1e78babbad5a8019e78c259bfe4353cc945b656 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import QtQuick

Rectangle {
    id: root
    property bool translucency: false

    gradient: Gradient {
        id: grad
    }

    onTranslucencyChanged: {
        if (translucency) {
            root.color = "transparent";
            root.gradient = null;
        } else {
            root.color = "white";
            root.gradient = grad;
        }
    }
}