summaryrefslogtreecommitdiffstats
path: root/qml/pages/BasicPage.qml
diff options
context:
space:
mode:
authorJan Arve Sæther <jan-arve.saether@theqtcompany.com>2014-11-06 13:55:38 +0100
committerJan Arve Sæther <jan-arve.saether@theqtcompany.com>2014-11-06 16:15:37 +0100
commitd2b9a2d70b84a487b3b340b99021a9df49eda861 (patch)
tree5cc07b8218d2b200203658ac5cb362d99bff4aba /qml/pages/BasicPage.qml
parentc8d169fd209a1cf1fad2af8113b24757de344494 (diff)
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 <caroline.chao@theqtcompany.com>
Diffstat (limited to 'qml/pages/BasicPage.qml')
-rw-r--r--qml/pages/BasicPage.qml16
1 files 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
}