Add debug logs on fullscreen.

This commit is contained in:
Julien Wadel 2023-03-28 14:30:02 +02:00
parent 60968d6f9d
commit 9b097c313e
2 changed files with 10 additions and 2 deletions

View file

@ -284,7 +284,10 @@ Rectangle {
backgroundRadius: width/2
colorSet: IncallStyle.buttons.fullscreen
visible: mainItem.callModel.videoEnabled
onClicked: Logic.showFullscreen(window, mainItem, 'IncallFullscreen.qml', title.mapToGlobal(0,0))
onClicked: {
console.info("[QML] User request fullscreen")
Logic.showFullscreen(window, mainItem, 'IncallFullscreen.qml', title.mapToGlobal(0,0))
}
}
}

View file

@ -50,7 +50,9 @@ Window {
onCallModelChanged: if(!callModel) window.exit()
Component.onCompleted: {
window.callModel = caller.callModel
console.info("[QML] fullscreen window opened")
}
Component.onDestruction: console.info("[QML] fullscreen window closed")
// ---------------------------------------------------------------------------
Shortcut {
@ -251,7 +253,10 @@ Window {
isCustom: true
backgroundRadius: width/2
colorSet: IncallStyle.buttons.stopFullscreen
onClicked: window.exit()
onClicked: {
console.info("[QML] User request exiting fullscreen")
window.exit()
}
}
}