mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-30 01:16:33 +02:00
[Panorama Viewer] auto fit panorama when ready
This commit is contained in:
parent
bdfda8a27b
commit
f39fb4effd
1 changed files with 7 additions and 0 deletions
|
@ -272,6 +272,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)
|
||||||
|
@ -900,5 +902,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