aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols/basic/TableViewDelegate.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/quickcontrols/basic/TableViewDelegate.qml')
-rw-r--r--src/quickcontrols/basic/TableViewDelegate.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/quickcontrols/basic/TableViewDelegate.qml b/src/quickcontrols/basic/TableViewDelegate.qml
index 9735095c9b..412746619c 100644
--- a/src/quickcontrols/basic/TableViewDelegate.qml
+++ b/src/quickcontrols/basic/TableViewDelegate.qml
@@ -17,6 +17,10 @@ T.TableViewDelegate {
highlighted: control.selected
+ // The content item shows the same text, and stays out of the accessibility
+ // tree, so that the cell is not read twice.
+ Accessible.name: control.model.display ?? ""
+
required property int column
required property int row
required property var model
@@ -31,6 +35,7 @@ T.TableViewDelegate {
}
contentItem: Label {
+ Accessible.ignored: true
clip: false
text: control.model.display ?? ""
elide: Text.ElideRight