mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
QML UI: add busy indicator to the main window
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8d01d421d4
commit
09507416c8
1 changed files with 14 additions and 2 deletions
|
@ -55,8 +55,20 @@ Kirigami.ApplicationWindow {
|
|||
}
|
||||
visible: false
|
||||
|
||||
// TODO: Verify where the opacity went to.
|
||||
// opacity: 0
|
||||
BusyIndicator {
|
||||
id: busy
|
||||
running: false
|
||||
anchors.fill: parent
|
||||
anchors.margins: Kirigami.Units.gridUnit
|
||||
}
|
||||
|
||||
function showBusy() {
|
||||
busy.running = true
|
||||
}
|
||||
|
||||
function hideBusy() {
|
||||
busy.running = false
|
||||
}
|
||||
|
||||
function returnTopPage() {
|
||||
for (var i=pageStack.depth; i>1; i--) {
|
||||
|
|
Loading…
Reference in a new issue