aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickrectangle/data/gradient.qml
blob: 6d2a3c4646d19bd4e0a9569a9d52ac90d359c605 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import QtQuick 2.0

Rectangle {

    function resetGradient() {
        gradient = undefined
    }

    gradient: Gradient {
        GradientStop { position: 0.0; color: "gray" }
        GradientStop { position: 1.0; color: "white" }
    }
}