dedup qml: move accessible properties to MyButton

This commit is contained in:
Justin Wang
2023-05-23 17:26:49 +02:00
committed by AT
parent eb6a7cca47
commit e3d6eb334b
6 changed files with 5 additions and 22 deletions

View File

@@ -119,15 +119,11 @@ NOTE: By turning on this feature, you will be sending your data to the GPT4All O
spacing: 10
MyButton {
text: qsTr("Enable")
Accessible.role: Accessible.Button
Accessible.name: text
Accessible.description: qsTr("Enable opt-in button")
DialogButtonBox.buttonRole: DialogButtonBox.AcceptRole
}
MyButton {
text: qsTr("Cancel")
Accessible.role: Accessible.Button
Accessible.name: text
Accessible.description: qsTr("Cancel opt-in button")
DialogButtonBox.buttonRole: DialogButtonBox.RejectRole
}