| 1 |
import QtQuick 2.0 |
| 2 |
|
| 3 |
Image { |
| 4 |
width: 320 |
| 5 |
height: 480 |
| 6 |
source: "../shared/winter.png" |
| 7 |
Grid { |
| 8 |
columns: 2 |
| 9 |
Item { width: 35; height: 50 } |
| 10 |
Row { |
| 11 |
id: row_0000 |
| 12 |
Repeater { |
| 13 |
model: 7 |
| 14 |
Rectangle { |
| 15 |
width: 35 |
| 16 |
height: 50 |
| 17 |
color: Qt.rgba(index & 1 ? 0.75 : 0.85, 1, 1, 0.75) |
| 18 |
Text { font.pointSize: 8; anchors.centerIn: parent; text: "Col " + (index + 1) } |
| 19 |
} |
| 20 |
} |
| 21 |
} |
| 22 |
Column { |
| 23 |
Repeater { |
| 24 |
model: 8 |
| 25 |
Rectangle { |
| 26 |
width: 35 |
| 27 |
height: 50 |
| 28 |
color: Qt.rgba(1, 1, index & 1 ? 0.75 : 0.85, 0.75) |
| 29 |
Text { font.pointSize: 8; anchors.centerIn: parent; text: "Row " + (index + 1) } |
| 30 |
} |
| 31 |
} |
| 32 |
} |
| 33 |
Grid { |
| 34 |
id: grid_0001 |
| 35 |
columns: 7 |
| 36 |
rows: 8 |
| 37 |
opacity: 0.5 |
| 38 |
Repeater { |
| 39 |
id: repeater_0001 |
| 40 |
model: 7 * 8 |
| 41 |
onActiveFocusChanged: console.debug("changed") |
| 42 |
|
| 43 |
Rectangle { |
| 44 |
id: rect_0001 |
| 45 |
width: 35 |
| 46 |
height: 50 |
| 47 |
radius: 10 |
| 48 |
gradient: Gradient { |
| 49 |
GradientStop { position: 0; color: "white" } |
| 50 |
GradientStop { position: 1; color: "blue" } |
| 51 |
} |
| 52 |
border.width: 2 |
| 53 |
border.color: "black" |
| 54 |
} |
| 55 |
} |
| 56 |
} |
| 57 |
} |
| 58 |
} |