| 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; } |
| 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 |
} |