mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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
|
visible: false
|
||||||
|
|
||||||
// TODO: Verify where the opacity went to.
|
BusyIndicator {
|
||||||
// opacity: 0
|
id: busy
|
||||||
|
running: false
|
||||||
|
anchors.fill: parent
|
||||||
|
anchors.margins: Kirigami.Units.gridUnit
|
||||||
|
}
|
||||||
|
|
||||||
|
function showBusy() {
|
||||||
|
busy.running = true
|
||||||
|
}
|
||||||
|
|
||||||
|
function hideBusy() {
|
||||||
|
busy.running = false
|
||||||
|
}
|
||||||
|
|
||||||
function returnTopPage() {
|
function returnTopPage() {
|
||||||
for (var i=pageStack.depth; i>1; i--) {
|
for (var i=pageStack.depth; i>1; i--) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue