mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-22 20:10:36 +00:00
add missing accessible props for buttons, remove forgotten duplicate accessible props
This commit is contained in:
@@ -649,6 +649,9 @@ Window {
|
||||
anchors.fill: parent
|
||||
source: "qrc:/gpt4all/icons/thumbs_up.svg"
|
||||
}
|
||||
Accessible.role = Accessible.Button
|
||||
Accessible.name = qsTr("Thumbs up")
|
||||
Accessible.description = qsTr("Updates response and chatModel state for thumbs up")
|
||||
onClicked: {
|
||||
if (thumbsUpState && !thumbsDownState)
|
||||
return
|
||||
@@ -682,6 +685,9 @@ Window {
|
||||
anchors.fill: parent
|
||||
source: "qrc:/gpt4all/icons/thumbs_down.svg"
|
||||
}
|
||||
Accessible.role = Accessible.Button
|
||||
Accessible.name = qsTr("Thumbs down")
|
||||
Accessible.description = qsTr("Opens thumbs down dialog")
|
||||
onClicked: {
|
||||
thumbsDownDialog.open()
|
||||
}
|
||||
|
Reference in New Issue
Block a user