1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-06 16:45:26 +02:00

accessibility: make button readable by screen readers

GitLab: #601
Change-Id: Ic60d035776c5a3ae9f1e6ee93b283c7c422d39f5
This commit is contained in:
Sébastien Blin 2021-12-01 14:42:26 -05:00
parent 218aa35e1e
commit b34b8cf523
4 changed files with 16 additions and 0 deletions

View file

@ -58,6 +58,10 @@ Button {
focusPolicy: Qt.TabFocus
Accessible.role: Accessible.Button
Accessible.name: root.text
Accessible.description: toolTipText
MaterialToolTip {
id: toolTip

View file

@ -79,6 +79,10 @@ AbstractButton {
hoverEnabled: true
focusPolicy: Qt.TabFocus
Accessible.role: Accessible.Button
Accessible.name: buttonText
Accessible.description: toolTipText
MaterialToolTip {
id: toolTip

View file

@ -142,6 +142,10 @@ ItemDelegate {
}
}
}
Accessible.role: Accessible.Button
Accessible.name: Title === undefined? "" : Title
Accessible.description: LastInteraction === undefined? "" : LastInteraction
}
background: Rectangle {

View file

@ -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()
}