summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Arve Saether <jan-arve.saether@theqtcompany.com>2014-10-10 13:07:28 +0200
committerFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2014-10-15 22:10:33 +0200
commit974880da9e4b19b78fc2c7bef1bd595fab5e79f3 (patch)
tree0cfb843d00ca2aa3b34b647f87467b6b3f0ca567
parentcde75ab705b43c3512a594562e3742fa5f66da44 (diff)
Fix accessibility press action on the long term day item for iOS
This worked fine on Android because it synthesizes a mouseclick to the MouseArea. This is not the case for accessibility on iOS. Change-Id: Id7dd6402ba1388f617dc5f8b38dfab3a60776189 Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
-rw-r--r--qml/pages/LongTermDayItem.qml8
1 files changed, 6 insertions, 2 deletions
diff --git a/qml/pages/LongTermDayItem.qml b/qml/pages/LongTermDayItem.qml
index 6200976..95995fd 100644
--- a/qml/pages/LongTermDayItem.qml
+++ b/qml/pages/LongTermDayItem.qml
@@ -65,12 +65,16 @@ ObjectModel {
Accessible.role: Accessible.Button
Accessible.name: qsTr("%1 %2 - temperature low: %3, high: %4, wind: %5 %6").arg(Utils.getDay(0, dayModel)).arg(Utils.getShortDate(dayModel.date)).arg(lowTemp.text).arg(highTemp.text).arg(windSpeed.text).arg(windSpeedUnit.text)
Accessible.description: qsTr("press for details")
+ function accessiblePressAction () {
+ ApplicationInfo.currentIndexDay = index
+ nextPage()
+ }
+
MouseArea {
id: mouse
anchors.fill: parent
onClicked: {
- ApplicationInfo.currentIndexDay = index
- nextPage()
+ parent.accessiblePressAction()
}
}
Rectangle {