aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/qml/main.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml
index d57d01bbb..07caa4189 100644
--- a/qt-mobile/qml/main.qml
+++ b/qt-mobile/qml/main.qml
@@ -13,6 +13,21 @@ MobileComponents.ApplicationWindow {
title: qsTr("Subsurface-mobile")
property bool fullscreen: true
property int oldStatus: -1
+ property alias sharedNotificationComponent: detailsWindow.notificationComponent
+ property alias accessingCloud: manager.accessingCloud
+ property QtObject notification: null
+ onAccessingCloudChanged: {
+ if (accessingCloud) {
+ notification = sharedNotificationComponent.createObject(rootItem);
+ notification.showNotification("Accessing Subsurface Cloud Storage", 5000);
+ } else {
+ if (notification) {
+ notification.hideNotification();
+ }
+ }
+
+ sharedNotificationComponent.show
+ }
FontMetrics {
id: fontMetrics