Fix issue 1918 for accessibility of screen readers.

Signed-off-by: Adam Treat <treat.adam@gmail.com>
pull/1944/head
Adam Treat 8 months ago
parent 490404dbb2
commit 4258bb1f8a

@ -369,7 +369,7 @@ Window {
highlighted: comboBox.highlightedIndex === index highlighted: comboBox.highlightedIndex === index
} }
Accessible.role: Accessible.ComboBox Accessible.role: Accessible.ComboBox
Accessible.name: qsTr("List of available models") Accessible.name: comboBox.currentModelName
Accessible.description: qsTr("The top item is the current model") Accessible.description: qsTr("The top item is the current model")
onActivated: function (index) { onActivated: function (index) {
currentChat.stopGenerating() currentChat.stopGenerating()
@ -957,7 +957,7 @@ Window {
} }
Accessible.role: Accessible.Paragraph Accessible.role: Accessible.Paragraph
Accessible.name: name Accessible.name: text
Accessible.description: name === qsTr("Response: ") ? "The response by the model" : "The prompt by the user" Accessible.description: name === qsTr("Response: ") ? "The response by the model" : "The prompt by the user"
topPadding: 20 topPadding: 20

@ -131,7 +131,7 @@ Drawer {
} }
} }
Accessible.role: Accessible.Button Accessible.role: Accessible.Button
Accessible.name: qsTr("Select the current chat") Accessible.name: text
Accessible.description: qsTr("Select the current chat or edit the chat when in edit mode") Accessible.description: qsTr("Select the current chat or edit the chat when in edit mode")
} }
Row { Row {

Loading…
Cancel
Save