1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
|
import QtQuick 2.0
Rectangle {
width: 320
height: 480
property bool smoothing: true
Rectangle{
id: rect_0_0
width: 160
height: 160
x: 0
y: 0
Text {
anchors.verticalCenter: parent.TopLeft
text: "border size 1"
z: 1
}
BorderImage {
id: borderImage_1
smooth: smoothing
source: "../shared/sample_1.png"
width: 120; height: 120
border.left: 1; border.top: 1
border.right: 1; border.bottom: 1
anchors.centerIn: parent
}
}
Rectangle{
id: rect_0_1
width: 160
height: 160
x: 160
y: 0
Text {
anchors.verticalCenter: parent.TopLeft
text: "border size 2"
z: 1
}
BorderImage {
id: borderImage_2
smooth: smoothing
source: "../shared/sample_1.png"
width: 120; height: 120
border.left: 2; border.top: 2
border.right: 2; border.bottom: 2
anchors.centerIn: parent
}
}
Rectangle{
id: rect_1_0
width: 160
height: 160
x: 0
y: 160
Text {
anchors.verticalCenter: parent.TopLeft
text: "border size 3"
z: 1
}
BorderImage {
id: borderImage_3
smooth: smoothing
source: "../shared/sample_1.png"
width: 120; height: 120
border.left: 3; border.top: 3
border.right: 3; border.bottom: 3
anchors.centerIn: parent
}
}
Rectangle{
id: rect_1_1
width: 160
height: 160
x: 160
y: 160
Text {
anchors.verticalCenter: parent.TopLeft
text: "border size 4"
z: 1
}
BorderImage {
id: borderImage_4
smooth: smoothing
source: "../shared/sample_1.png"
width: 120; height: 120
border.left: 4; border.top: 4
border.right: 4; border.bottom: 4
anchors.centerIn: parent
}
}
Rectangle{
id: rect_2_0
width: 160
height: 160
x: 0
y: 320
Text {
anchors.verticalCenter: parent.TopLeft
text: "border size 5"
z: 1
}
BorderImage {
id: borderImage_5
smooth: smoothing
source: "../shared/sample_1.png"
width: 120; height: 120
border.left: 5; border.top: 5
border.right: 5; border.bottom: 5
anchors.centerIn: parent
}
}
Rectangle{
id: rect_2_1
width: 160
height: 160
x: 160
y: 320
Text {
anchors.verticalCenter: parent.TopLeft
text: "border size 6"
z: 1
}
BorderImage {
id: borderImage_6
smooth: smoothing
source: "../shared/sample_1.png"
width: 120; height: 120
border.left: 6; border.top: 6
border.right: 6; border.bottom: 6
anchors.centerIn: parent
}
}
Rectangle{
id: rect_3_0
width: 160
height: 160
x: 0
y: 480
Text {
anchors.verticalCenter: parent.TopLeft
text: "border size 7"
z: 1
}
BorderImage {
id: borderImage_7
smooth: smoothing
source: "../shared/sample_1.png"
width: 120; height: 120
border.left: 7; border.top: 7
border.right: 7; border.bottom: 7
anchors.centerIn: parent
}
}
Rectangle{
id: rect_3_1
width: 160
height: 160
x: 160
y: 480
Text {
anchors.verticalCenter: parent.TopLeft
text: "border size 8"
z: 1
}
BorderImage {
id: borderImage_8
smooth: smoothing
source: "../shared/sample_1.png"
width: 120; height: 120
border.left: 8; border.top: 8
border.right: 8; border.bottom: 8
anchors.centerIn: parent
}
}
}
|