[PanoramaViewer] add grid display button

Added the possibility to enable or disable the grid display with a button
This commit is contained in:
Landrodie 2021-01-12 17:46:24 +01:00 committed by Fabien Castan
parent 49a4161c22
commit 376802b713
2 changed files with 6 additions and 5 deletions

View file

@ -16,7 +16,6 @@ FocusScope {
property Component floatViewerComp: Qt.createComponent("FloatImage.qml")
property alias useFloatImageViewer: displayHDR.checked
property alias usePanoramaImageViewer: displayPanoramaViewer.checked
property bool displayGridPanorama: panoramaImageToolbar.displayGrid
Loader {
id: aliceVisionPluginLoader
@ -232,9 +231,6 @@ FocusScope {
}
}
// displayGridPanorama. :{
// console.warn("Grid out ")
// }
}
// qtAliceVision Panorama Viewer
@ -254,6 +250,7 @@ FocusScope {
'gamma': Qt.binding(function() { return panoramaImageToolbar.gammaValue; }),
'gain': Qt.binding(function() { return panoramaImageToolbar.gainValue; }),
'channelModeString': Qt.binding(function() { return panoramaImageToolbar.channelModeValue; }),
'isGridDisplayed' : Qt.binding(function(){ return panoramaImageToolbar.displayGrid;})
})
} else {
// Force the unload (instead of using Component.onCompleted to load it once and for all) is necessary since Qt 5.14