From 09507416c8a09511966d4be9abe08db5b3930070 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 20 Oct 2018 11:54:47 -0400 Subject: QML UI: add busy indicator to the main window Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/main.qml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index e58c83689..bf0830f46 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -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--) { -- cgit v1.2.3-70-g09d2