[Panorama Viewer] refactoring panorama viewer

This commit is contained in:
Thomas Zorroche 2021-01-26 15:22:51 +01:00 committed by Fabien Castan
parent 8216fdd225
commit 5b5f725f3e
2 changed files with 5 additions and 14 deletions

View file

@ -262,7 +262,6 @@ FocusScope {
onActiveChanged: {
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;}),
@ -274,6 +273,9 @@ FocusScope {
setSource("", {})
}
}
onLoaded: {
panoramaViewerLoader.item.updateSfmPath();
}
}
// Simple QML Image Viewer (using Qt or qtOIIO to load images)