Skip to content

Commit

Permalink
[Viewer] SequencePlayer: Use correct syntax for QML connections
Browse files Browse the repository at this point in the history
Implicitly defined slots in `Connections` are deprecated and should be
replaced with functions.
  • Loading branch information
cbentejac authored and mugulmd committed Jul 12, 2023
1 parent 7af051d commit 525e0aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions meshroom/ui/qml/Viewer/SequencePlayer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ FloatingPane {
// when the selected view ID is changed externally
Connections {
target: _reconstruction
onSelectedViewIdChanged: {
function onSelectedViewIdChanged() {
for (let idx = 0; idx < sortedViewIds.length; idx++) {
if (_reconstruction.selectedViewId == sortedViewIds[idx] && (m.frame != idx)) {
m.frame = idx;
Expand Down Expand Up @@ -134,7 +134,7 @@ FloatingPane {

Connections {
target: m
onPlayingChanged: {
function onPlayingChanged() {
playButton.checked = m.playing;
}
}
Expand Down Expand Up @@ -180,7 +180,7 @@ FloatingPane {

Connections {
target: m
onFrameChanged: {
function onFrameChanged() {
frameSlider.value = m.frame;
}
}
Expand Down

0 comments on commit 525e0aa

Please sign in to comment.