mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 16:58:24 +02:00
[ui] sequence player: repeat button
This commit is contained in:
parent
3da3c89c56
commit
9295d22246
1 changed files with 21 additions and 1 deletions
|
@ -42,7 +42,18 @@ FloatingPane {
|
|||
interval: 1000 / fpsSpinBox.value
|
||||
|
||||
onTriggered: {
|
||||
viewSlider.value += 1;
|
||||
let nextIndex = viewSlider.value + 1;
|
||||
if (nextIndex == m.sortedViewIds.length) {
|
||||
if (repeatButton.checked) {
|
||||
viewSlider.value = 0;
|
||||
return;
|
||||
}
|
||||
else {
|
||||
playButton.checked = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
viewSlider.value = nextIndex;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -139,5 +150,14 @@ FloatingPane {
|
|||
stepSize: 1
|
||||
}
|
||||
}
|
||||
|
||||
MaterialToolButton {
|
||||
id: repeatButton
|
||||
|
||||
checkable: true
|
||||
checked: false
|
||||
text: MaterialIcons.replay
|
||||
ToolTip.text: "Repeat"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue