summaryrefslogtreecommitdiffstats
path: root/examples/declarative/border-image/content/ShadowRectangle.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/border-image/content/ShadowRectangle.qml')
-rw-r--r--examples/declarative/border-image/content/ShadowRectangle.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/declarative/border-image/content/ShadowRectangle.qml b/examples/declarative/border-image/content/ShadowRectangle.qml
new file mode 100644
index 0000000..629478b
--- /dev/null
+++ b/examples/declarative/border-image/content/ShadowRectangle.qml
@@ -0,0 +1,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 }
+}