aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/scenegraph_lancelot/data/borderimages/borderimage_tiling_horizontal.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/scenegraph_lancelot/data/borderimages/borderimage_tiling_horizontal.qml')
-rw-r--r--tests/manual/scenegraph_lancelot/data/borderimages/borderimage_tiling_horizontal.qml76
1 files changed, 76 insertions, 0 deletions
diff --git a/tests/manual/scenegraph_lancelot/data/borderimages/borderimage_tiling_horizontal.qml b/tests/manual/scenegraph_lancelot/data/borderimages/borderimage_tiling_horizontal.qml
new file mode 100644
index 0000000000..7151f3a958
--- /dev/null
+++ b/tests/manual/scenegraph_lancelot/data/borderimages/borderimage_tiling_horizontal.qml
@@ -0,0 +1,76 @@
+import QtQuick 2.0
+
+Rectangle {
+ width: 320
+ height: 480
+ property bool smoothing: true
+ Rectangle{
+ id: rect_0_0
+ width: 160
+ height: 160
+ x: 0
+ y: 0
+
+ BorderImage {
+ id: borderImage_0
+ smooth: smoothing
+ source: "../shared/sample_1.png"
+ width: 120; height: 120
+ border.left: 10; border.top: 10
+ border.right: 10; border.bottom: 10
+ horizontalTileMode: BorderImage.Stretch
+ anchors.centerIn: parent
+ }
+ Text {
+ anchors.top: borderImage_0.bottom
+ text: "mode: stretch"
+ z: 1
+ }
+ }
+ Rectangle{
+ id: rect_0_1
+ width: 160
+ height: 160
+ x: 160
+ y: 0
+
+ BorderImage {
+ id: borderImage_1
+ smooth: smoothing
+ source: "../shared/sample_1.png"
+ width: 120; height: 120
+ border.left: 10; border.top: 10
+ border.right: 10; border.bottom: 10
+ horizontalTileMode: BorderImage.Repeat
+ anchors.centerIn: parent
+ }
+ Text {
+ anchors.top: borderImage_1.bottom
+ text: "mode: repeat"
+ z: 1
+ }
+ }
+ Rectangle{
+ id: rect_1_0
+ width: 160
+ height: 160
+ x: 0
+ y: 160
+
+ BorderImage {
+ id: borderImage_2
+ smooth: smoothing
+ source: "../shared/sample_1.png"
+ width: 120; height: 120
+ border.left: 10; border.top: 10
+ border.right: 10; border.bottom: 10
+ horizontalTileMode: BorderImage.Round
+ anchors.centerIn: parent
+ }
+ Text {
+ anchors.top: borderImage_2.bottom
+ text: "mode: round"
+ z: 1
+ }
+ }
+}