mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-02 09:40:42 +00:00
add missing accessible props for buttons, remove forgotten duplicate accessible props
This commit is contained in:
parent
fc76760f7a
commit
57852bfb9c
@ -649,6 +649,9 @@ Window {
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
source: "qrc:/gpt4all/icons/thumbs_up.svg"
|
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: {
|
onClicked: {
|
||||||
if (thumbsUpState && !thumbsDownState)
|
if (thumbsUpState && !thumbsDownState)
|
||||||
return
|
return
|
||||||
@ -682,6 +685,9 @@ Window {
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
source: "qrc:/gpt4all/icons/thumbs_down.svg"
|
source: "qrc:/gpt4all/icons/thumbs_down.svg"
|
||||||
}
|
}
|
||||||
|
Accessible.role = Accessible.Button
|
||||||
|
Accessible.name = qsTr("Thumbs down")
|
||||||
|
Accessible.description = qsTr("Opens thumbs down dialog")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
thumbsDownDialog.open()
|
thumbsDownDialog.open()
|
||||||
}
|
}
|
||||||
|
@ -38,8 +38,6 @@ Drawer {
|
|||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
font.pixelSize: theme.fontSizeLarger
|
font.pixelSize: theme.fontSizeLarger
|
||||||
text: qsTr("New chat")
|
text: qsTr("New chat")
|
||||||
Accessible.role: Accessible.Button
|
|
||||||
Accessible.name: text
|
|
||||||
Accessible.description: qsTr("Use this to launch an external application that will check for updates to the installer")
|
Accessible.description: qsTr("Use this to launch an external application that will check for updates to the installer")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
LLM.chatListModel.addChat();
|
LLM.chatListModel.addChat();
|
||||||
@ -257,8 +255,6 @@ Drawer {
|
|||||||
anchors.bottom: downloadButton.top
|
anchors.bottom: downloadButton.top
|
||||||
anchors.bottomMargin: 10
|
anchors.bottomMargin: 10
|
||||||
text: qsTr("Updates")
|
text: qsTr("Updates")
|
||||||
Accessible.role: Accessible.Button
|
|
||||||
Accessible.name: text
|
|
||||||
Accessible.description: qsTr("Use this to launch an external application that will check for updates to the installer")
|
Accessible.description: qsTr("Use this to launch an external application that will check for updates to the installer")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (!LLM.checkForUpdates())
|
if (!LLM.checkForUpdates())
|
||||||
@ -273,8 +269,6 @@ Drawer {
|
|||||||
anchors.bottom: aboutButton.top
|
anchors.bottom: aboutButton.top
|
||||||
anchors.bottomMargin: 10
|
anchors.bottomMargin: 10
|
||||||
text: qsTr("Downloads")
|
text: qsTr("Downloads")
|
||||||
Accessible.role: Accessible.Button
|
|
||||||
Accessible.name: text
|
|
||||||
Accessible.description: qsTr("Use this to launch a dialog to download new models")
|
Accessible.description: qsTr("Use this to launch a dialog to download new models")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
downloadClicked()
|
downloadClicked()
|
||||||
@ -287,8 +281,6 @@ Drawer {
|
|||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
text: qsTr("About")
|
text: qsTr("About")
|
||||||
Accessible.role: Accessible.Button
|
|
||||||
Accessible.name: text
|
|
||||||
Accessible.description: qsTr("Use this to launch a dialog to show the about page")
|
Accessible.description: qsTr("Use this to launch a dialog to show the about page")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
aboutClicked()
|
aboutClicked()
|
||||||
|
Loading…
Reference in New Issue
Block a user