Fix issue 1918 for accessibility of screen readers.

Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
Adam Treat 2024-02-07 10:37:15 -05:00
parent 490404dbb2
commit 4258bb1f8a
2 changed files with 3 additions and 3 deletions

View File

@ -369,7 +369,7 @@ Window {
highlighted: comboBox.highlightedIndex === index
}
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")
onActivated: function (index) {
currentChat.stopGenerating()
@ -957,7 +957,7 @@ Window {
}
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"
topPadding: 20

View File

@ -131,7 +131,7 @@ Drawer {
}
}
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")
}
Row {