diff options
author | aavit <qt_aavit@ovi.com> | 2012-09-07 13:29:53 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-09-27 12:08:39 +0200 |
commit | 4fc4e7ed89c3085ae98c57dd80e6cd8cc61f6ee2 (patch) | |
tree | 0426f330789a67db260e5995172f0ba7ec9e8c59 /tests/manual/scenegraph_lancelot/data/borderimages/borderimage_tiling_vertical.qml | |
parent | a49154a75005403185e3813d441fb3e1931af2a2 (diff) |
Added lancelot-based scenegraph rendering regression test
Change-Id: I6718d00ba96dc9c96dac82de4ded9228f6bfb990
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Diffstat (limited to 'tests/manual/scenegraph_lancelot/data/borderimages/borderimage_tiling_vertical.qml')
-rw-r--r-- | tests/manual/scenegraph_lancelot/data/borderimages/borderimage_tiling_vertical.qml | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/tests/manual/scenegraph_lancelot/data/borderimages/borderimage_tiling_vertical.qml b/tests/manual/scenegraph_lancelot/data/borderimages/borderimage_tiling_vertical.qml new file mode 100644 index 0000000000..02ec66cdf7 --- /dev/null +++ b/tests/manual/scenegraph_lancelot/data/borderimages/borderimage_tiling_vertical.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 + verticalTileMode: 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 + verticalTileMode: 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 + verticalTileMode: BorderImage.Round + anchors.centerIn: parent + } + Text { + anchors.top: borderImage_2.bottom + text: "mode: round" + z: 1 + } + } +} |