Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qmlvisual / fillmode / fillmode.qml
1 import QtQuick 1.0
2
3 /*
4     This is a static display test of the various Image fill modes. See the png file in the data
5     subdirectory to see what the image should look like.
6 */
7
8 Rectangle {
9     id: screen; width: 360; height: 200; color: "gray"
10     property string source: "face.png"
11
12     Grid {
13         columns: 3
14         Image { width: 120; height: 100; source: screen.source; fillMode: Image.Stretch }
15         Image { width: 120; height: 100; source: screen.source; fillMode: Image.PreserveAspectFit; smooth: true }
16         Image { width: 120; height: 100; source: screen.source; fillMode: Image.PreserveAspectCrop }
17         Image { width: 120; height: 100; source: screen.source; fillMode: Image.Tile; smooth: true }
18         Image { width: 120; height: 100; source: screen.source; fillMode: Image.TileHorizontally }
19         Image { width: 120; height: 100; source: screen.source; fillMode: Image.TileVertically }
20     }
21 }