[Calendar] Flip arrow buttons on right-to-left languages

This ensures the arrows always point outward, away from the centre button.

REVIEW: 128327
This commit is contained in:
Kai Uwe Broulik 2016-06-30 12:28:09 +02:00
parent 19e8f37753
commit f24fd0caff

View File

@ -142,7 +142,7 @@ Item {
Components.ToolButton { Components.ToolButton {
id: previousButton id: previousButton
iconName: "go-previous" iconName: Qt.application.layoutDirection === Qt.RightToLeft ? "go-next" : "go-previous"
onClicked: daysCalendar.previous() onClicked: daysCalendar.previous()
Accessible.name: tooltip Accessible.name: tooltip
} }
@ -157,7 +157,7 @@ Item {
Components.ToolButton { Components.ToolButton {
id: nextButton id: nextButton
iconName: "go-next" iconName: Qt.application.layoutDirection === Qt.RightToLeft ? "go-previous" : "go-next"
onClicked: daysCalendar.next() onClicked: daysCalendar.next()
Accessible.name: tooltip Accessible.name: tooltip
} }