|
|
|
@ -28,35 +28,54 @@ ElDialog { |
|
|
|
color: "#aa000000" |
|
|
|
color: "#aa000000" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
padding: 0 |
|
|
|
|
|
|
|
|
|
|
|
ColumnLayout { |
|
|
|
ColumnLayout { |
|
|
|
TextArea { |
|
|
|
ColumnLayout { |
|
|
|
id: message |
|
|
|
Layout.margins: constants.paddingMedium |
|
|
|
Layout.preferredWidth: Overlay.overlay.width *2/3 |
|
|
|
Layout.alignment: Qt.AlignHCenter |
|
|
|
readOnly: true |
|
|
|
TextArea { |
|
|
|
wrapMode: TextInput.WordWrap |
|
|
|
id: message |
|
|
|
textFormat: richText ? TextEdit.RichText : TextEdit.PlainText |
|
|
|
Layout.preferredWidth: Overlay.overlay.width *2/3 |
|
|
|
background: Rectangle { |
|
|
|
readOnly: true |
|
|
|
color: 'transparent' |
|
|
|
wrapMode: TextInput.WordWrap |
|
|
|
|
|
|
|
textFormat: richText ? TextEdit.RichText : TextEdit.PlainText |
|
|
|
|
|
|
|
background: Rectangle { |
|
|
|
|
|
|
|
color: 'transparent' |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
RowLayout { |
|
|
|
ButtonContainer { |
|
|
|
Layout.alignment: Qt.AlignHCenter |
|
|
|
Layout.fillWidth: true |
|
|
|
Button { |
|
|
|
|
|
|
|
|
|
|
|
FlatButton { |
|
|
|
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
|
|
textUnderIcon: false |
|
|
|
text: qsTr('Ok') |
|
|
|
text: qsTr('Ok') |
|
|
|
|
|
|
|
icon.source: Qt.resolvedUrl('../../icons/confirmed.png') |
|
|
|
visible: !yesno |
|
|
|
visible: !yesno |
|
|
|
onClicked: dialog.close() |
|
|
|
onClicked: dialog.close() |
|
|
|
} |
|
|
|
} |
|
|
|
Button { |
|
|
|
|
|
|
|
|
|
|
|
FlatButton { |
|
|
|
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
|
|
Layout.preferredWidth: 1 |
|
|
|
|
|
|
|
textUnderIcon: false |
|
|
|
text: qsTr('Yes') |
|
|
|
text: qsTr('Yes') |
|
|
|
|
|
|
|
icon.source: Qt.resolvedUrl('../../icons/confirmed.png') |
|
|
|
visible: yesno |
|
|
|
visible: yesno |
|
|
|
onClicked: { |
|
|
|
onClicked: { |
|
|
|
yesClicked() |
|
|
|
yesClicked() |
|
|
|
dialog.close() |
|
|
|
dialog.close() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
Button { |
|
|
|
FlatButton { |
|
|
|
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
|
|
Layout.preferredWidth: 1 |
|
|
|
|
|
|
|
textUnderIcon: false |
|
|
|
text: qsTr('No') |
|
|
|
text: qsTr('No') |
|
|
|
|
|
|
|
icon.source: Qt.resolvedUrl('../../icons/closebutton.png') |
|
|
|
visible: yesno |
|
|
|
visible: yesno |
|
|
|
onClicked: { |
|
|
|
onClicked: { |
|
|
|
reject() |
|
|
|
reject() |
|
|
|
|