qml: add logging of instance around SwapDialog create/destroy and swap trigger
This commit is contained in:
@@ -155,7 +155,10 @@ Pane {
|
|||||||
Component {
|
Component {
|
||||||
id: swapDialog
|
id: swapDialog
|
||||||
SwapDialog {
|
SwapDialog {
|
||||||
onClosed: destroy()
|
onClosed: {
|
||||||
|
console.log('Destroying SwapDialog ' + this)
|
||||||
|
destroy()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -243,7 +243,10 @@ ElDialog {
|
|||||||
text: qsTr('Ok')
|
text: qsTr('Ok')
|
||||||
icon.source: Qt.resolvedUrl('../../icons/confirmed.png')
|
icon.source: Qt.resolvedUrl('../../icons/confirmed.png')
|
||||||
enabled: swaphelper.valid
|
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: {
|
Component.onCompleted: {
|
||||||
|
console.log('Created SwapDialog ' + this)
|
||||||
swapslider.value = swaphelper.sliderPos
|
swapslider.value = swaphelper.sliderPos
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user