[ui] Fetching button added for Sequence Player

This commit is contained in:
Aurore LAFAURIE 2024-05-28 17:00:28 +02:00
parent 154babbf5c
commit 1c48d68bef
3 changed files with 13 additions and 2 deletions

View file

@ -23,6 +23,7 @@ FloatingPane {
property var sortedViewIds: []
property var viewer: null
readonly property alias sync3DSelected: m.sync3DSelected
property alias loading: fetchButton.checked
function updateReconstructionView() {
if (_reconstruction && m.frame >= 0 && m.frame < sortedViewIds.length) {
@ -323,6 +324,15 @@ FloatingPane {
}
}
MaterialToolButton {
id: fetchButton
text: MaterialIcons.download_for_offline
ToolTip.text: "Fetch"
checkable: true
checked: false
}
MaterialToolButton {
id: repeatButton

View file

@ -461,7 +461,8 @@ FocusScope {
'cropFisheye': false,
'sequence': Qt.binding(function() { return ((root.enableSequencePlayer && _reconstruction && _reconstruction.viewpoints.count > 0) ? getSequence() : []) }),
'targetSize': Qt.binding(function() { return floatImageViewerLoader.targetSize }),
'useSequence': Qt.binding(function() { return root.enableSequencePlayer && !useExternal && _reconstruction })
'useSequence': Qt.binding(function() { return root.enableSequencePlayer && !useExternal && _reconstruction }),
'fetchingSequence': Qt.binding(function() { return sequencePlayer.loading }),
})
} else {
// Forcing the unload (instead of using Component.onCompleted to load it once and for all) is necessary since Qt 5.14

View file

@ -157,7 +157,7 @@ Item {
id: enableSequencePlayerAction
text: "Enable Sequence Player"
checkable: true
checked: false
checked: true
}
}
}