ReceivingFileTemplateDeletePopup.ui.qml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import QtQuick 2.4
  2. import QtQuick.Controls 2.3
  3. import QtQuick.Layouts 1.3
  4. Popup {
  5. id: confirmDeletePopup
  6. height: 150
  7. dim: true
  8. clip: false
  9. width: 400
  10. modal: true
  11. focus: true
  12. closePolicy: Popup.NoAutoClose
  13. anchors.centerIn: Overlay.overlay
  14. ColumnLayout {
  15. anchors.fill: parent
  16. Text {
  17. id: confirmDeletePopupConfirmationText
  18. Layout.alignment: Qt.AlignCenter
  19. Layout.preferredHeight: 80
  20. Layout.preferredWidth: parent.width
  21. text: "Are you sure you want to delete this file from the Server?"
  22. verticalAlignment: Text.AlignTop
  23. horizontalAlignment: Text.AlignHCenter
  24. wrapMode: Text.WordWrap
  25. font.pointSize: 15
  26. color: "#ffffff"
  27. }
  28. RowLayout {
  29. Layout.preferredHeight: 80
  30. Layout.preferredWidth: parent.width
  31. Button {
  32. id: confirmDeleteButton
  33. Layout.alignment: Qt.AlignCenter
  34. Layout.preferredWidth: 100
  35. text: qsTr("Delete")
  36. // @disable-check M223
  37. onClicked: {
  38. // @disable-check M222
  39. _qmlHandler.onReceivingConfirmDeleteFileButton(fileNameText)
  40. }
  41. }
  42. Button {
  43. id: cancelDeleteButton
  44. Layout.alignment: Qt.AlignCenter
  45. Layout.preferredWidth: 100
  46. text: qsTr("Cancel")
  47. // @disable-check M222
  48. onClicked: confirmDeletePopup.close()
  49. }
  50. }
  51. }
  52. }