mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-01 18:31:58 +02:00
[ui] Viewer3D: add loading overlay with BusyIndicator
This commit is contained in:
parent
edfc34fbd1
commit
5814a39e3e
2 changed files with 22 additions and 0 deletions
|
@ -16,6 +16,15 @@ Entity {
|
|||
property bool pickingEnabled: false
|
||||
readonly property alias count: instantiator.count // number of instantiated media delegates
|
||||
|
||||
/// True while at least one media is being loaded
|
||||
readonly property bool loading: {
|
||||
for(var i=0; i<m.mediaModel.count; ++i) {
|
||||
if(m.mediaModel.get(i).status === SceneLoader.Loading)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
signal pressed(var pick)
|
||||
signal loadRequest(var idx)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue