Debian Codegraph @

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

raw
1 import QtQuick 2.0
2
3
4 Rectangle{
5 id: tr
6 property alias lbl: txt.text
7 property alias hTileMode: img.horizontalTileMode
8 property alias vTileMode: img.verticalTileMode
9 property alias xPos: tr.x
10 property int yPos: tr.y
11 property alias smoothing: img.smooth
12
13 BorderImage{ id: img; source: "../shared/world.png"; width: 70; height: 70; border { top: 6; bottom: 6; left: 6; right: 6} }
14 Text{
15 id: txt
16 text: "default"
17 anchors.top: img.bottom
18 anchors.horizontalCenter: img.horizontalCenter
19 font.family: "Arial"
20 font.pointSize: 8
21 }
22 }