[Panorama Viewer] Loading indicator added

This commit is contained in:
Thomas Zorroche 2021-03-03 10:41:09 +01:00 committed by Fabien Castan
parent 1c3fbaa6e1
commit 3fe862834e
2 changed files with 28 additions and 4 deletions

View file

@ -891,7 +891,12 @@ FocusScope {
anchors.centerIn: parent
// running property binding seems broken, only dynamic binding assignment works
Component.onCompleted: {
running = Qt.binding(function() { return imgContainer.image && imgContainer.image.status === Image.Loading })
if (root.usePanoramaViewer) {
running = Qt.binding(function() { return imgContainer.panoramaViewerLoader.status === Image.Loading })
} else {
running = Qt.binding(function() { return imgContainer.image && imgContainer.image.status === Image.Loading })
}
}
// disable the visibility when unused to avoid stealing the mouseEvent to the image color picker
visible: running