summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-20 11:54:47 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-23 22:45:30 +0100
commit09507416c8a09511966d4be9abe08db5b3930070 (patch)
tree3c0a7373b2028f3495fd99ef06bd14f779d27897 /mobile-widgets/qml
parent8d01d421d49f5d05a3e113cd779d296b50271109 (diff)
downloadsubsurface-09507416c8a09511966d4be9abe08db5b3930070.tar.gz
QML UI: add busy indicator to the main window
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/main.qml16
1 files 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--) {