mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +02:00
[Panorama Viewer] send value from toolbar to viewer
This commit is contained in:
parent
e7941ef75e
commit
07f115bb70
3 changed files with 4 additions and 0 deletions
|
@ -14,6 +14,7 @@ FloatingPane {
|
||||||
property bool enableEdit: enablePanoramaEdit.checked
|
property bool enableEdit: enablePanoramaEdit.checked
|
||||||
property bool enableHover: enableHover.checked
|
property bool enableHover: enableHover.checked
|
||||||
|
|
||||||
|
property int downscaleValue: downscaleSpinBox.value
|
||||||
property int downscaleDefaultValue: 2
|
property int downscaleDefaultValue: 2
|
||||||
|
|
||||||
background: Rectangle { color: root.palette.window }
|
background: Rectangle { color: root.palette.window }
|
||||||
|
|
|
@ -30,6 +30,8 @@ AliceVision.PanoramaViewer {
|
||||||
return Image.Ready;
|
return Image.Ready;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
property int downscale: 2
|
||||||
|
|
||||||
clearBeforeLoad: true
|
clearBeforeLoad: true
|
||||||
|
|
||||||
channelMode : AliceVision.PanoramaViewer.EChannelMode.RGBA
|
channelMode : AliceVision.PanoramaViewer.EChannelMode.RGBA
|
||||||
|
|
|
@ -258,6 +258,7 @@ FocusScope {
|
||||||
if(active) {
|
if(active) {
|
||||||
setSource("PanoramaViewer.qml", {
|
setSource("PanoramaViewer.qml", {
|
||||||
'source': Qt.binding(function() { return getImageFile(imageType.type); }),
|
'source': Qt.binding(function() { return getImageFile(imageType.type); }),
|
||||||
|
'downscale': Qt.binding(function(){return panoramaViewerToolbar.downscaleValue;})
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// Force the unload (instead of using Component.onCompleted to load it once and for all) is necessary since Qt 5.14
|
// Force the unload (instead of using Component.onCompleted to load it once and for all) is necessary since Qt 5.14
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue