Skip to content
Snippets Groups Projects
Commit b34b8cf5 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

accessibility: make button readable by screen readers

GitLab: #601
Change-Id: Ic60d035776c5a3ae9f1e6ee93b283c7c422d39f5
parent 218aa35e
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,10 @@ Button {
focusPolicy: Qt.TabFocus
Accessible.role: Accessible.Button
Accessible.name: root.text
Accessible.description: toolTipText
MaterialToolTip {
id: toolTip
......
......@@ -79,6 +79,10 @@ AbstractButton {
hoverEnabled: true
focusPolicy: Qt.TabFocus
Accessible.role: Accessible.Button
Accessible.name: buttonText
Accessible.description: toolTipText
MaterialToolTip {
id: toolTip
......
......@@ -142,6 +142,10 @@ ItemDelegate {
}
}
}
Accessible.role: Accessible.Button
Accessible.name: Title === undefined? "" : Title
Accessible.description: LastInteraction === undefined? "" : LastInteraction
}
background: Rectangle {
......
......@@ -66,6 +66,10 @@ RowLayout {
ToolTip.visible: hovered && (tooltipText.length > 0)
ToolTip.text: tooltipText
Accessible.role: Accessible.Button
Accessible.name: root.labelText
Accessible.description: root.tooltipText
onToggled: {
switchToggled()
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment