2016-04-18 23:06:17 +02:00
|
|
|
import QtQuick 2.4
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-08-10 00:05:10 +02:00
|
|
|
Rectangle {
|
|
|
|
width: 32 * (16 + 1) + 1; height: 32 * (16 + 1) + 1; color: "black"
|
|
|
|
|
|
|
|
Grid {
|
|
|
|
x: 1; y: 1
|
|
|
|
rows: 32; columns: 32; spacing: 1
|
2016-08-08 23:11:34 +02:00
|
|
|
|
2016-08-10 00:05:10 +02:00
|
|
|
Repeater {
|
|
|
|
model: parent.rows * parent.columns
|
|
|
|
Rectangle {
|
|
|
|
width: 16; height: 16
|
|
|
|
color: "lightgreen"
|
2016-08-08 23:11:34 +02:00
|
|
|
|
2016-08-10 00:05:10 +02:00
|
|
|
Text {
|
|
|
|
text: index
|
|
|
|
font.pointSize: 12
|
|
|
|
anchors.centerIn: parent } }
|
2016-04-18 23:06:17 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|