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:
parent
218aa35e1e
commit
b34b8cf523
4 changed files with 16 additions and 0 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue