1
0

qml: add logging of instance around SwapDialog create/destroy and swap trigger

This commit is contained in:
Sander van Grieken
2023-04-06 09:26:52 +02:00
parent bcbcf18c4d
commit e02ca6b2d8
2 changed files with 9 additions and 2 deletions

View File

@@ -155,7 +155,10 @@ Pane {
Component {
id: swapDialog
SwapDialog {
onClosed: destroy()
onClosed: {
console.log('Destroying SwapDialog ' + this)
destroy()
}
}
}

View File

@@ -243,7 +243,10 @@ ElDialog {
text: qsTr('Ok')
icon.source: Qt.resolvedUrl('../../icons/confirmed.png')
enabled: swaphelper.valid
onClicked: swaphelper.executeSwap()
onClicked: {
console.log('Swap triggered from dialog ' + this + ' using swaphelper ' + swaphelper)
swaphelper.executeSwap()
}
}
}
@@ -258,6 +261,7 @@ ElDialog {
}
Component.onCompleted: {
console.log('Created SwapDialog ' + this)
swapslider.value = swaphelper.sliderPos
}