From d2b9a2d70b84a487b3b340b99021a9df49eda861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Arve=20S=C3=A6ther?= Date: Thu, 6 Nov 2014 13:55:38 +0100 Subject: Increase size of the accessible elements in the header Previously, the back button was so small that it was hard to hit it. Change-Id: I5948d379f47a8d57749acc22bbbb098432afccaf Reviewed-by: Caroline Chao --- qml/pages/BasicPage.qml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/qml/pages/BasicPage.qml b/qml/pages/BasicPage.qml index aec1054..a7748ad 100644 --- a/qml/pages/BasicPage.qml +++ b/qml/pages/BasicPage.qml @@ -115,9 +115,16 @@ Item { Layout.preferredWidth: 22 * ApplicationInfo.ratio Layout.preferredHeight: 35 * ApplicationInfo.ratio visible: page.Stack.index > 0 - Accessible.role: Accessible.Button - Accessible.name: qsTr("Back") - Accessible.onPressAction: { backPressed() } + Item { + // This item exist solely for accessibility purposes. + y: -parent.y -parent.parent.y + height: blueRect.height + x: -parent.x + width: t1.x + Accessible.role: Accessible.Button + Accessible.name: qsTr("Back") + Accessible.onPressAction: { backPressed() } + } } Rectangle { opacity: 0 @@ -165,10 +172,11 @@ Item { Layout.preferredWidth: ApplicationInfo.hMargin Item { // This item exist solely for accessibility purposes. + y: -parent.y -parent.parent.y x: -parent.x + t1.x visible: true width: titleRow.width - t1.x - height: parent.height + height: blueRect.height Accessible.role: Accessible.StaticText Accessible.name: title1 + " " + title2 + " " + title3 } -- cgit v1.2.3