mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-24 12:07:19 +02:00
[ui] sequence player: minor bug fixes
This commit is contained in:
parent
76f4fc82f9
commit
03dc812e5d
2 changed files with 18 additions and 5 deletions
|
@ -72,6 +72,10 @@ FloatingPane {
|
|||
onSyncSelectedChanged: {
|
||||
updateReconstructionView();
|
||||
}
|
||||
|
||||
onPlayingChanged: {
|
||||
syncSelected = !playing;
|
||||
}
|
||||
}
|
||||
|
||||
// Exposed properties
|
||||
|
@ -174,6 +178,7 @@ FloatingPane {
|
|||
id: frameLabel
|
||||
|
||||
text: m.frame
|
||||
Layout.preferredWidth: frameMetrics.width
|
||||
}
|
||||
|
||||
Slider {
|
||||
|
@ -203,8 +208,6 @@ FloatingPane {
|
|||
}
|
||||
}
|
||||
|
||||
property real frameLength: m.sortedViewIds.length > 0 ? width / m.sortedViewIds.length : 0
|
||||
|
||||
background: Rectangle {
|
||||
x: frameSlider.leftPadding
|
||||
y: frameSlider.topPadding + frameSlider.height / 2 - height / 2
|
||||
|
@ -214,12 +217,15 @@ FloatingPane {
|
|||
color: Colors.grey
|
||||
|
||||
Repeater {
|
||||
id: cacheView
|
||||
|
||||
model: viewer ? viewer.cachedFrames : []
|
||||
property real frameLength: m.sortedViewIds.length > 0 ? frameSlider.width / m.sortedViewIds.length : 0
|
||||
|
||||
Rectangle {
|
||||
x: modelData.x * frameSlider.frameLength
|
||||
x: modelData.x * cacheView.frameLength
|
||||
y: 0
|
||||
width: frameSlider.frameLength * (modelData.y - modelData.x + 1)
|
||||
width: cacheView.frameLength * (modelData.y - modelData.x + 1)
|
||||
height: 4
|
||||
radius: 2
|
||||
color: Colors.blue
|
||||
|
@ -263,6 +269,13 @@ FloatingPane {
|
|||
}
|
||||
}
|
||||
|
||||
TextMetrics {
|
||||
id: frameMetrics
|
||||
|
||||
font: frameLabel.font
|
||||
text: "10000"
|
||||
}
|
||||
|
||||
TextMetrics {
|
||||
id: fpsMetrics
|
||||
|
||||
|
|
|
@ -435,7 +435,7 @@ FocusScope {
|
|||
'canBeHovered': false,
|
||||
'idView': Qt.binding(function() { return (_reconstruction ? _reconstruction.selectedViewId : -1); }),
|
||||
'cropFisheye': false,
|
||||
'sequence': Qt.binding(function() { return ((_reconstruction && _reconstruction.viewpoints) ? _reconstruction.allImagePaths() : []) }),
|
||||
'sequence': Qt.binding(function() { return ((_reconstruction && _reconstruction.viewpoints.count > 0) ? _reconstruction.allImagePaths() : []) }),
|
||||
'useSequence': Qt.binding(function() { return !useExternal && _reconstruction && (!displayedNode || outputAttribute.name == "gallery"); })
|
||||
})
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue