Commit 38755ea0 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[IndoorMapPage] Add name for floor up/down

Adds a tooltip for accessibility but keeps the button
icon-only as the arrow is quite self-explanatory
parent 1793ee11
......@@ -50,12 +50,16 @@ Kirigami.Page {
actions {
left: Kirigami.Action {
iconName: "go-down-symbolic"
text: i18nc("@action:intoolbar Go down one floor", "Floor down")
displayHint: Kirigami.DisplayHint.IconOnly
enabled: map.floorLevels.hasFloorLevelBelow(map.view.floorLevel)
onTriggered: map.view.floorLevel = map.floorLevels.floorLevelBelow(map.view.floorLevel)
visible: map.floorLevels.hasFloorLevels
}
right: Kirigami.Action {
iconName: "go-up-symbolic"
text: i18nc("@action:intoolbar Go up one floor", "Floor up")
displayHint: Kirigami.DisplayHint.IconOnly
enabled: map.floorLevels.hasFloorLevelAbove(map.view.floorLevel)
onTriggered: map.view.floorLevel = map.floorLevels.floorLevelAbove(map.view.floorLevel)
visible: map.floorLevels.hasFloorLevels
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment