From 7d669145f9182ecc4604f2abc5e67157f3b3368b Mon Sep 17 00:00:00 2001 From: Jan Arve Saether Date: Wed, 15 Oct 2014 11:33:55 +0200 Subject: 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 --- qml/touch/ListViewDelegate.qml | 10 +++++----- 1 file 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 { -- cgit v1.2.3