Debian Codegraph @

tests/manual/scenegraph_lancelot/data/images/tiling.qml

raw
1 import QtQuick 2.0
2
3 Rectangle {
4 id: root
5 width: 320
6 height: 480
7
8 property bool useSmooth: false
9
10 property variant fillModes: [
11 Image.Stretch,
12 Image.PreserveAspectFit,
13 Image.PreserveAspectCrop,
14 Image.Tile,
15 Image.TileVertically,
16 Image.TileHorizontally
17 ]
18
19 Grid {
20 columns: 2
21 rows: 2
22
23 Grid {
24 width: 160
25 height: 240
26 columns: 2
27 rows: 3
28 Repeater {
29 model: 6
30 Image {
31 width: 80
32 height: 80
33 source: "../shared/tile.png"
34 fillMode: fillModes[index]
35 }
36 }
37 }
38
39 Grid {
40 width: 160
41 height: 240
42 columns: 2
43 rows: 3
44 Repeater {
45 model: 6
46 Image {
47 width: 80
48 height: 80
49 source: "../shared/tile.png"
50 fillMode: fillModes[index]
51 smooth: true
52 }
53 }
54 }
55
56 Grid {
57 width: 160
58 height: 240
59 columns: 2
60 rows: 3
61 Repeater {
62 model: 6
63 Item {
64 width: 80
65 height: 80
66 clip: true
67 Image {
68 width: 80
69 height: 80
70 source: "../shared/tile.png"
71 fillMode: fillModes[index]
72 scale: 1.5
73 }
74 }
75 }
76 }
77
78 Grid {
79 width: 160
80 height: 240
81 columns: 2
82 rows: 3
83 Repeater {
84 model: 6
85 Item {
86 width: 80
87 height: 80
88 clip: true
89 Image {
90 width: 80
91 height: 80
92 source: "../shared/tile.png"
93 fillMode: fillModes[index]
94 smooth: true
95 scale: 1.5
96 }
97 }
98 }
99 }
100 }
101
102 }