summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/mail/contents/ui/Mail.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/components/mail/contents/ui/Mail.qml b/components/mail/contents/ui/Mail.qml
index ff0e8c5c..334e5a96 100644
--- a/components/mail/contents/ui/Mail.qml
+++ b/components/mail/contents/ui/Mail.qml
@@ -27,6 +27,7 @@ import org.kde.kirigami 1.0 as Kirigami
27import org.kube.framework.actions 1.0 as KubeAction 27import org.kube.framework.actions 1.0 as KubeAction
28import org.kube.framework.settings 1.0 as KubeSettings 28import org.kube.framework.settings 1.0 as KubeSettings
29import org.kube.framework.domain 1.0 as KubeFramework 29import org.kube.framework.domain 1.0 as KubeFramework
30import org.kube.framework.notifications 1.0 as KubeNotifications
30import org.kube.components 1.0 as KubeComponents 31import org.kube.components 1.0 as KubeComponents
31import org.kube.components.accounts 1.0 as KubeAccounts 32import org.kube.components.accounts 1.0 as KubeAccounts
32 33
@@ -40,6 +41,16 @@ Controls2.ApplicationWindow {
40 41
41 visible: true 42 visible: true
42 43
44 KubeNotifications.NotificationHandler {
45 id: notificationHandler
46 function handler(n) {
47 console.warn("We got a notification: ", n.message)
48 if (n.type == KubeNotifications.Notification.Warning) {
49 console.warn("And it's a warning!", n.type)
50 }
51 }
52 }
53
43 //BEGIN Actions 54 //BEGIN Actions
44 KubeAction.Context { 55 KubeAction.Context {
45 id: maillistcontext 56 id: maillistcontext