mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +02:00
[Panorama Viewer] auto fit panorama when ready
This commit is contained in:
parent
dc6930401e
commit
423e82e28f
1 changed files with 7 additions and 0 deletions
|
@ -277,6 +277,8 @@ FocusScope {
|
||||||
onLoaded: {
|
onLoaded: {
|
||||||
panoramaViewerLoader.item.updateSfmPath();
|
panoramaViewerLoader.item.updateSfmPath();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Simple QML Image Viewer (using Qt or qtOIIO to load images)
|
// Simple QML Image Viewer (using Qt or qtOIIO to load images)
|
||||||
|
@ -999,5 +1001,10 @@ FocusScope {
|
||||||
}
|
}
|
||||||
// disable the visibility when unused to avoid stealing the mouseEvent to the image color picker
|
// disable the visibility when unused to avoid stealing the mouseEvent to the image color picker
|
||||||
visible: running
|
visible: running
|
||||||
|
|
||||||
|
onVisibleChanged: {
|
||||||
|
if (panoramaViewerLoader.active && panoramaViewerLoader.item.status === Image.Ready)
|
||||||
|
fit();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue