[Panorama Viewer] add subdivisions slider

This commit is contained in:
Landrodie 2021-01-26 11:35:31 +01:00 committed by Fabien Castan
parent b1bac3db3e
commit 3d4579b13d
3 changed files with 59 additions and 4 deletions

View file

@ -258,9 +258,10 @@ FocusScope {
if(active) {
setSource("PanoramaViewer.qml", {
'source': Qt.binding(function() { return getImageFile(imageType.type); }),
'isEditable': Qt.binding(function(){ return panoramaViewerToolbar.enableEdit}),
'isHighlightable': Qt.binding(function(){ return panoramaViewerToolbar.enableHover}),
'downscaleValue': Qt.binding(function(){return panoramaViewerToolbar.downscaleValue;})
'isEditable': Qt.binding(function(){ return panoramaViewerToolbar.enableEdit;}),
'isHighlightable': Qt.binding(function(){ return panoramaViewerToolbar.enableHover;}),
'downscaleValue': Qt.binding(function(){return panoramaViewerToolbar.downscaleValue;}),
'subdivisionsPano': Qt.binding(function(){ return panoramaViewerToolbar.subdivisionsValue;})
})
} else {
// Force the unload (instead of using Component.onCompleted to load it once and for all) is necessary since Qt 5.14