1
0

qml: remove Dialog standardButtons everywhere

This commit is contained in:
Sander van Grieken
2023-01-17 18:03:13 +01:00
parent 4b7472b13f
commit 3c1e4ba5a5
25 changed files with 2 additions and 36 deletions

View File

@@ -13,8 +13,7 @@ ElDialog {
height: parent.height
title: qsTr('Opening Channel...')
standardButtons: Dialog.Close
footer.visible: allowClose // work around standardButtons not really mutable to/from zero buttons
allowClose: false
modal: true

View File

@@ -15,7 +15,6 @@ ElDialog {
property string channelid
title: qsTr('Close Channel')
standardButtons: closing ? 0 : Dialog.Cancel
iconSource: Qt.resolvedUrl('../../icons/lightning_disconnected.png')
modal: true

View File

@@ -30,8 +30,6 @@ ElDialog {
height: parent.height
padding: 0
standardButtons: Dialog.Cancel
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {

View File

@@ -21,8 +21,6 @@ ElDialog {
height: parent.height
padding: 0
standardButtons: Dialog.Cancel
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {

View File

@@ -19,7 +19,6 @@ ElDialog {
parent: Overlay.overlay
modal: true
standardButtons: Dialog.Close
width: parent.width
height: parent.height

View File

@@ -17,7 +17,6 @@ ElDialog {
parent: Overlay.overlay
modal: true
standardButtons: Dialog.Close
width: parent.width
height: parent.height

View File

@@ -11,7 +11,6 @@ ElDialog {
property bool valid: false
standardButtons: Dialog.Close
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {

View File

@@ -11,7 +11,6 @@ ElDialog {
property bool valid: false
standardButtons: Dialog.Cancel
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {

View File

@@ -17,7 +17,6 @@ ElDialog {
signal invoiceAmountChanged
title: qsTr('Invoice')
standardButtons: invoice_key != '' ? Dialog.Close : Dialog.Cancel
iconSource: Qt.resolvedUrl('../../icons/tab_send.png')
padding: 0

View File

@@ -16,7 +16,6 @@ ElDialog {
height: parent.height
title: qsTr('Paying Lightning Invoice...')
standardButtons: Dialog.Close
modal: true
parent: Overlay.overlay
@@ -35,14 +34,12 @@ ElDialog {
name: 'success'
PropertyChanges { target: spinner; running: false }
PropertyChanges { target: helpText; text: qsTr('Paid!') }
// PropertyChanges { target: dialog; standardButtons: Dialog.Ok }
PropertyChanges { target: icon; source: '../../icons/confirmed.png' }
},
State {
name: 'failed'
PropertyChanges { target: spinner; running: false }
PropertyChanges { target: helpText; text: qsTr('Payment failed') }
// PropertyChanges { target: dialog; standardButtons: Dialog.Ok }
PropertyChanges { target: errorText; visible: true }
PropertyChanges { target: icon; source: '../../icons/warning.png' }
}

View File

@@ -15,8 +15,6 @@ ElDialog {
property InvoiceParser invoiceParser
standardButtons: Dialog.Cancel
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {

View File

@@ -15,7 +15,6 @@ ElDialog {
parent: Overlay.overlay
modal: true
standardButtons: Dialog.Cancel
padding: 0
width: parent.width

View File

@@ -20,8 +20,6 @@ ElDialog {
property string name
property string path
standardButtons: Dialog.Cancel
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {

View File

@@ -18,8 +18,6 @@ ElDialog {
property bool _waiting: false
property string _otpError
standardButtons: Dialog.Cancel
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {

View File

@@ -19,7 +19,7 @@ ElDialog {
parent: Overlay.overlay
modal: true
standardButtons: Dialog.Cancel
anchors.centerIn: parent
padding: 0

View File

@@ -25,7 +25,6 @@ ElDialog {
focus: true
standardButtons: canCancel ? Dialog.Cancel : 0
closePolicy: canCancel ? Popup.CloseOnEscape | Popup.CloseOnPressOutside : Popup.NoAutoClose
property bool canCancel: true

View File

@@ -14,7 +14,6 @@ ElDialog {
parent: Overlay.overlay
modal: true
standardButtons: Dialog.Close
width: parent.width
height: parent.height

View File

@@ -21,8 +21,6 @@ ElDialog {
height: parent.height
padding: 0
standardButtons: Dialog.Cancel
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {

View File

@@ -21,8 +21,6 @@ ElDialog {
height: parent.height
padding: 0
standardButtons: Dialog.Cancel
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {

View File

@@ -19,7 +19,6 @@ ElDialog {
parent: Overlay.overlay
modal: true
standardButtons: Dialog.Cancel
iconSource: Qt.resolvedUrl('../../icons/pen.png')
Overlay.modal: Rectangle {

View File

@@ -23,7 +23,6 @@ ElDialog {
parent: Overlay.overlay
modal: true
standardButtons: Dialog.Close
iconSource: Qt.resolvedUrl('../../icons/tab_receive.png')
Overlay.modal: Rectangle {

View File

@@ -21,7 +21,6 @@ ElDialog {
parent: Overlay.overlay
modal: true
standardButtons: Dialog.Close
width: parent.width
height: parent.height

View File

@@ -16,7 +16,6 @@ ElDialog {
parent: Overlay.overlay
modal: true
standardButtons: Dialog.Close
Overlay.modal: Rectangle {
color: "#aa000000"
@@ -83,7 +82,6 @@ ElDialog {
parent: Overlay.overlay
modal: true
standardButtons: Dialog.Ok
Overlay.modal: Rectangle {
color: "#aa000000"

View File

@@ -14,7 +14,6 @@ ElDialog {
parent: Overlay.overlay
modal: true
standardButtons: Dialog.Close
width: parent.width
height: parent.height

View File

@@ -15,7 +15,6 @@ ElDialog {
title: qsTr('Lightning Swap')
iconSource: Qt.resolvedUrl('../../icons/update.png')
standardButtons: Dialog.Cancel
modal: true
parent: Overlay.overlay