summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Arve Saether <jan-arve.saether@digia.com>2014-10-15 11:33:55 +0200
committerFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2014-10-15 13:27:26 +0200
commit7d669145f9182ecc4604f2abc5e67157f3b3368b (patch)
tree65612a30da12f9b446983b0b1c60679f0845d936
parenta9885cce1d569b6865e473efbf5dd5e4a605f169 (diff)
Make delete button also available for accessibility
Previously the gridlayout was the button, but then it would ignore all its children (including the delete button) Now we move the accessible button to the MouseArea, which is not a parent of the delete button. This also ensures that the geometry of the button is the same for both accessible and non-accessible users. Change-Id: I139bee8836407ed3d8b6da08249eae351d7ecb56 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
-rw-r--r--qml/touch/ListViewDelegate.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/qml/touch/ListViewDelegate.qml b/qml/touch/ListViewDelegate.qml
index 04cc9e7..f040ad8 100644
--- a/qml/touch/ListViewDelegate.qml
+++ b/qml/touch/ListViewDelegate.qml
@@ -61,11 +61,6 @@ Rectangle {
rowSpacing: 4 * ApplicationInfo.ratio
columnSpacing: 0
columns: 2
- Accessible.role: Accessible.Button
- Accessible.name: loader.item.accessibleName
- function accessiblePressAction() {
- rect.clicked()
- }
Rectangle {
Layout.preferredWidth: ApplicationInfo.hMargin
Layout.fillHeight: true
@@ -97,6 +92,11 @@ Rectangle {
width: parent.width - 80 * ApplicationInfo.ratio - ApplicationInfo.hMargin
height: parent.height
onClicked: rect.clicked()
+ Accessible.role: Accessible.Button
+ Accessible.name: loader.item.accessibleName
+ function accessiblePressAction() {
+ rect.clicked()
+ }
}
property Component searchViewRow: RowLayout {