aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/doc/snippets
diff options
context:
space:
mode:
authorAlexei Cazacov <alexei.cazacov@qt.io>2024-06-14 14:45:45 +0300
committerAlexei Cazacov <alexei.cazacov@qt.io>2024-06-17 10:31:07 +0300
commit9ae58a8e6021654f9c2811cc6f4db97a46ac30b7 (patch)
tree368086658cdc6329356865b4de2fa03370929d21 /src/quick/doc/snippets
parent6dd80d7894ab079023ea4cb8b102855553ef6da3 (diff)
Docs: Clarify the snippet about Editing Cells in a TableView
This commit corrects the code snippet provided for editing cells in TableView. Fixes: QTBUG-125157 Pick-to: 6.8 6.7 6.5 Change-Id: I639926d7a1b4316dad84f8fbff35e9088e19fa95 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/quick/doc/snippets')
-rw-r--r--src/quick/doc/snippets/qml/tableview/editdelegate.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/doc/snippets/qml/tableview/editdelegate.qml b/src/quick/doc/snippets/qml/tableview/editdelegate.qml
index 11de5f5434..c5274e5ac7 100644
--- a/src/quick/doc/snippets/qml/tableview/editdelegate.qml
+++ b/src/quick/doc/snippets/qml/tableview/editdelegate.qml
@@ -46,7 +46,7 @@ Window {
display = text
// 'display = text' is short-hand for:
// let index = TableView.view.index(row, column)
- // TableView.view.model.setData(index, text, Qt.DisplayRole)
+ // TableView.view.model.setData(index, "display", text)
}
}
}