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/images/fill_mode.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/images/fill_mode.qml')
-rw-r--r-- | tests/manual/scenegraph_lancelot/data/images/fill_mode.qml | 165 |
1 files changed, 165 insertions, 0 deletions
diff --git a/tests/manual/scenegraph_lancelot/data/images/fill_mode.qml b/tests/manual/scenegraph_lancelot/data/images/fill_mode.qml new file mode 100644 index 0000000000..d391cd73f9 --- /dev/null +++ b/tests/manual/scenegraph_lancelot/data/images/fill_mode.qml @@ -0,0 +1,165 @@ +import QtQuick 2.0 + +Rectangle { + width: 320 + height: 480 + smooth: true + Rectangle{ + id: rect0_0 + width: 160 + height: 160 + x: 0 + y: 0 + Text{ + text: "Stretch" + x: 20 + y: 20 + color: "red" + font.family: "Helvetica" + font.pointSize: 24 + z: 1 + } + Image{ + id: bwLinear1 + width: 160 + height: 160 + source: "../shared/bw_1535x2244.jpg" + sourceSize.width: 1535 + sourceSize.height: 2244 + } + } + Rectangle{ + id: rect0_1 + width: 160 + height: 160 + x: 180 + y: 0 + Text{ + text: "Preserve\naspect\nfit" + x: 20 + y: 20 + color: "red" + font.family: "Helvetica" + font.pointSize: 24 + z: 1 + } + Image{ + id: bwLinear2 + width: 160 + height: 160 + source: "../shared/bw_1535x2244.jpg" + fillMode: Image.PreserveAspectFit + sourceSize.width: 1535 + sourceSize.height: 2244 + } + } + Rectangle{ + id: rect1_0 + width: 160 + height: 160 + x: 0 + y: 160 + Text{ + text: "Preserve\naspect\ncrop" + x: 20 + y: 20 + color: "red" + font.family: "Helvetica" + font.pointSize: 24 + z: 1 + } + Image{ + id: bwLinear3 + width: 160 + height: 160 + source: "../shared/bw_1535x2244.jpg" + fillMode: Image.PreserveAspectCrop + sourceSize.width: 1535 + sourceSize.height: 2244 + } + + } + Rectangle{ + id: rect1_1 + width: 160 + height: 160 + x: 180 + y: 160 + Text{ + text: "Tile" + x: 20 + y: 20 + color: "red" + font.family: "Helvetica" + font.pointSize: 24 + z: 1 + } + Image{ + id: bwLinear4 + width: 160 + height: 160 + source: "../shared/bw_1535x2244.jpg" + fillMode: Image.Tile + sourceSize.width: 1535 + sourceSize.height: 2244 + } + } + + Rectangle{ + id: rect2_0 + width: 160 + height: 160 + x: 0 + y: 320 + Text{ + text: "Tile\nvertically" + x: 20 + y: 20 + color: "red" + font.family: "Helvetica" + font.pointSize: 24 + z: 1 + } + Image{ + id: bwLinear5 + width: 160 + height: 160 + source: "../shared/bw_1535x2244.jpg" + fillMode: Image.TileVertically + sourceSize.width: 1535 + sourceSize.height: 2244 + } + } + Rectangle{ + id: rect2_1 + width: 160 + height: 160 + x: 180 + y: 320 + Text{ + text: "Tile horizontally" + x: 20 + y: 20 + color: "red" + font.family: "Helvetica" + font.pointSize: 24 + z: 1 + } + Image{ + id: bwLinear6 + width: 160 + height: 160 + source: "../shared/bw_1535x2244.jpg" + fillMode: Image.TileHorizontally + sourceSize.width: 1535 + sourceSize.height: 2244 + } + } + + + + + + +} + |