aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/tableview/abstracttablemodel/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/tableview/abstracttablemodel/main.qml')
-rw-r--r--tests/manual/tableview/abstracttablemodel/main.qml17
1 files changed, 13 insertions, 4 deletions
diff --git a/tests/manual/tableview/abstracttablemodel/main.qml b/tests/manual/tableview/abstracttablemodel/main.qml
index a9b8da94c6..6e694c71a2 100644
--- a/tests/manual/tableview/abstracttablemodel/main.qml
+++ b/tests/manual/tableview/abstracttablemodel/main.qml
@@ -75,12 +75,21 @@ Window {
Component {
id: tableViewDelegate
Rectangle {
- implicitWidth: column % 3 ? 80 : 50
- implicitHeight: row % 3 ? 80 : 50
+ id: delegate
+ implicitWidth: 100
+ implicitHeight: 50
+ color: checked ? "lightblue" : "white"
Text {
- anchors.centerIn: parent
- text: modelData
+ anchors.fill: parent
+ text: display
+
+ MouseArea {
+ anchors.fill: parent
+ onClicked: {
+ checked = !checked
+ }
+ }
}
}
}