|
|
|
|
@ -28,7 +28,12 @@ ElDialog {
|
|
|
|
|
color: "#aa000000" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
padding: 0 |
|
|
|
|
|
|
|
|
|
ColumnLayout { |
|
|
|
|
ColumnLayout { |
|
|
|
|
Layout.margins: constants.paddingMedium |
|
|
|
|
Layout.alignment: Qt.AlignHCenter |
|
|
|
|
TextArea { |
|
|
|
|
id: message |
|
|
|
|
Layout.preferredWidth: Overlay.overlay.width *2/3 |
|
|
|
|
@ -39,24 +44,38 @@ ElDialog {
|
|
|
|
|
color: 'transparent' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
RowLayout { |
|
|
|
|
Layout.alignment: Qt.AlignHCenter |
|
|
|
|
Button { |
|
|
|
|
ButtonContainer { |
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
|
|
|
|
FlatButton { |
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
textUnderIcon: false |
|
|
|
|
text: qsTr('Ok') |
|
|
|
|
icon.source: Qt.resolvedUrl('../../icons/confirmed.png') |
|
|
|
|
visible: !yesno |
|
|
|
|
onClicked: dialog.close() |
|
|
|
|
} |
|
|
|
|
Button { |
|
|
|
|
|
|
|
|
|
FlatButton { |
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
Layout.preferredWidth: 1 |
|
|
|
|
textUnderIcon: false |
|
|
|
|
text: qsTr('Yes') |
|
|
|
|
icon.source: Qt.resolvedUrl('../../icons/confirmed.png') |
|
|
|
|
visible: yesno |
|
|
|
|
onClicked: { |
|
|
|
|
yesClicked() |
|
|
|
|
dialog.close() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
Button { |
|
|
|
|
FlatButton { |
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
Layout.preferredWidth: 1 |
|
|
|
|
textUnderIcon: false |
|
|
|
|
text: qsTr('No') |
|
|
|
|
icon.source: Qt.resolvedUrl('../../icons/closebutton.png') |
|
|
|
|
visible: yesno |
|
|
|
|
onClicked: { |
|
|
|
|
reject() |
|
|
|
|
|