diff options
Diffstat (limited to 'tests/auto/declarative/qmlvisual/fillmode/fillmode.qml')
-rw-r--r-- | tests/auto/declarative/qmlvisual/fillmode/fillmode.qml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlvisual/fillmode/fillmode.qml b/tests/auto/declarative/qmlvisual/fillmode/fillmode.qml new file mode 100644 index 0000000000..b2ecfee4b7 --- /dev/null +++ b/tests/auto/declarative/qmlvisual/fillmode/fillmode.qml @@ -0,0 +1,21 @@ +import QtQuick 1.0 + +/* + This is a static display test of the various Image fill modes. See the png file in the data + subdirectory to see what the image should look like. +*/ + +Rectangle { + id: screen; width: 360; height: 200; color: "gray" + property string source: "face.png" + + Grid { + columns: 3 + Image { width: 120; height: 100; source: screen.source; fillMode: Image.Stretch } + Image { width: 120; height: 100; source: screen.source; fillMode: Image.PreserveAspectFit; smooth: true } + Image { width: 120; height: 100; source: screen.source; fillMode: Image.PreserveAspectCrop } + Image { width: 120; height: 100; source: screen.source; fillMode: Image.Tile; smooth: true } + Image { width: 120; height: 100; source: screen.source; fillMode: Image.TileHorizontally } + Image { width: 120; height: 100; source: screen.source; fillMode: Image.TileVertically } + } +} |