aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickborderimage/data/mesh.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickborderimage/data/mesh.qml')
-rw-r--r--tests/auto/quick/qquickborderimage/data/mesh.qml22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickborderimage/data/mesh.qml b/tests/auto/quick/qquickborderimage/data/mesh.qml
new file mode 100644
index 0000000000..203bf25867
--- /dev/null
+++ b/tests/auto/quick/qquickborderimage/data/mesh.qml
@@ -0,0 +1,22 @@
+import QtQuick 2.8
+
+Item {
+ width: 300
+ height: 300
+ Image {
+ id: image
+ source: "colors.png"
+ visible: false
+ }
+ ShaderEffect {
+ anchors.fill: parent
+ property variant source: image
+ mesh: BorderImageMesh {
+ border.left: 30
+ border.right: 30
+ border.top: 30
+ border.bottom: 30
+ size: image.sourceSize
+ }
+ }
+}