[Panorama Viewer] send value from toolbar to viewer

This commit is contained in:
Landrodie 2021-01-25 15:46:05 +01:00 committed by Fabien Castan
parent e7941ef75e
commit 07f115bb70
3 changed files with 4 additions and 0 deletions

View file

@ -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 }

View file

@ -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

View file

@ -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