Debian Codegraph @

tests/manual/scenegraph_lancelot/data/borderimages/borderimage_tiling_horizontal.qml

raw
1 import QtQuick 2.0
2
3 Rectangle {
4 width: 320
5 height: 480
6 property bool smoothing: true
7 Rectangle{
8 id: rect_0_0
9 width: 160
10 height: 160
11 x: 0
12 y: 0
13
14 BorderImage {
15 id: borderImage_0
16 smooth: smoothing
17 source: "../shared/sample_1.png"
18 width: 120; height: 120
19 border.left: 10; border.top: 10
20 border.right: 10; border.bottom: 10
21 horizontalTileMode: BorderImage.Stretch
22 anchors.centerIn: parent
23 }
24 Text {
25 anchors.top: borderImage_0.bottom
26 text: "mode: stretch"
27 z: 1
28 }
29 }
30 Rectangle{
31 id: rect_0_1
32 width: 160
33 height: 160
34 x: 160
35 y: 0
36
37 BorderImage {
38 id: borderImage_1
39 smooth: smoothing
40 source: "../shared/sample_1.png"
41 width: 120; height: 120
42 border.left: 10; border.top: 10
43 border.right: 10; border.bottom: 10
44 horizontalTileMode: BorderImage.Repeat
45 anchors.centerIn: parent
46 }
47 Text {
48 anchors.top: borderImage_1.bottom
49 text: "mode: repeat"
50 z: 1
51 }
52 }
53 Rectangle{
54 id: rect_1_0
55 width: 160
56 height: 160
57 x: 0
58 y: 160
59
60 BorderImage {
61 id: borderImage_2
62 smooth: smoothing
63 source: "../shared/sample_1.png"
64 width: 120; height: 120
65 border.left: 10; border.top: 10
66 border.right: 10; border.bottom: 10
67 horizontalTileMode: BorderImage.Round
68 anchors.centerIn: parent
69 }
70 Text {
71 anchors.top: borderImage_2.bottom
72 text: "mode: round"
73 z: 1
74 }
75 }
76 }