mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-02 16:28:51 +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: {
|
||||
panoramaViewerLoader.item.updateSfmPath();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// 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
|
||||
visible: running
|
||||
|
||||
onVisibleChanged: {
|
||||
if (panoramaViewerLoader.active && panoramaViewerLoader.item.status === Image.Ready)
|
||||
fit();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue