summaryrefslogtreecommitdiffstats
path: root/examples/declarative/border-image/content/ShadowRectangle.qml
blob: 629478b435da5f9b54d99b5ae45f3054a82c3366 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import Qt 4.7

Item {
    property alias color : rectangle.color

    BorderImage {
        anchors.fill: rectangle
        anchors { leftMargin: -6; topMargin: -6; rightMargin: -8; bottomMargin: -8 }
        border { left: 10; top: 10; right: 10; bottom: 10 }
        source: "shadow.png"; smooth: true
    }

    Rectangle { id: rectangle; anchors.fill: parent }
}