2f17d78efdb68d98963074d4a0b52b884a1c13a0
[profile/ivi/qtdeclarative.git] / tests / auto / qtquick2 / qquickitemlayer / data / ItemEffect.qml
1 import QtQuick 2.0
2
3 Item {
4     width: 200
5     height: 200
6     Rectangle {
7         anchors.fill: parent
8         anchors.margins: 99
9         gradient: Gradient {
10             GradientStop { position: 0.3; color: "red" }
11             GradientStop { position: 0.7; color: "blue" }
12         }
13         layer.enabled: true
14         layer.effect: Item {
15             property variant source
16             ShaderEffect {
17                 anchors.fill: parent
18                 anchors.margins: -99
19                 property variant source: parent.source
20             }
21         }
22     }
23 }