mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-02 16:28:51 +02:00
[PanoramaViewer] fix loader problem
This commit is contained in:
parent
44b25e00d7
commit
e134ad8308
2 changed files with 4 additions and 4 deletions
|
@ -251,7 +251,7 @@ FocusScope {
|
|||
if(active) {
|
||||
setSource("PanoramaViewer.qml", {
|
||||
'source': Qt.binding(function() { return getImageFile(imageType.type); }),
|
||||
'channelModeString': Qt.binding(function() { return lensDistortionImageToolbar.channelModeValue; }), })
|
||||
})
|
||||
} else {
|
||||
// Force the unload (instead of using Component.onCompleted to load it once and for all) is necessary since Qt 5.14
|
||||
setSource("", {})
|
||||
|
@ -262,7 +262,7 @@ FocusScope {
|
|||
// Simple QML Image Viewer (using Qt or qtOIIO to load images)
|
||||
Loader {
|
||||
id: qtImageViewerLoader
|
||||
active: !floatImageViewerLoader.active
|
||||
active: !floatImageViewerLoader.active && !panoramaViewerLoader.active
|
||||
anchors.centerIn: parent
|
||||
sourceComponent: Image {
|
||||
id: qtImageViewer
|
||||
|
@ -296,9 +296,10 @@ FocusScope {
|
|||
|
||||
|
||||
property var image: {
|
||||
//qtImageViewerLoader.active ? qtImageViewerLoader.item : floatImageViewerLoader.item
|
||||
if (floatImageViewerLoader.active)
|
||||
floatImageViewerLoader.item
|
||||
else if (panoramaViewerLoader.active)
|
||||
panoramaViewerLoader.item
|
||||
else
|
||||
qtImageViewerLoader.item
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue