1
0

messageDialog: move yes to the right, no to the left.

According to the Google Android guidelines, "The dismissive action
of a dialog is always on the left."
source:
https://uxplanet.org/primary-secondary-action-buttons-c16df9b36150
This commit is contained in:
ThomasV
2023-04-13 10:49:41 +02:00
parent f43cd7b278
commit 8e9491e330

View File

@@ -50,15 +50,6 @@ ElDialog {
onClicked: doAccept()
}
FlatButton {
Layout.fillWidth: true
Layout.preferredWidth: 1
textUnderIcon: false
text: qsTr('Yes')
icon.source: Qt.resolvedUrl('../../icons/confirmed.png')
visible: yesno
onClicked: doAccept()
}
FlatButton {
Layout.fillWidth: true
Layout.preferredWidth: 1
@@ -68,6 +59,15 @@ ElDialog {
visible: yesno
onClicked: doReject()
}
FlatButton {
Layout.fillWidth: true
Layout.preferredWidth: 1
textUnderIcon: false
text: qsTr('Yes')
icon.source: Qt.resolvedUrl('../../icons/confirmed.png')
visible: yesno
onClicked: doAccept()
}
}
}
}