summaryrefslogtreecommitdiffstats
path: root/components/mail
diff options
context:
space:
mode:
Diffstat (limited to 'components/mail')
-rw-r--r--components/mail/contents/ui/main.qml21
1 files changed, 7 insertions, 14 deletions
diff --git a/components/mail/contents/ui/main.qml b/components/mail/contents/ui/main.qml
index 423d8f34..bf3b4954 100644
--- a/components/mail/contents/ui/main.qml
+++ b/components/mail/contents/ui/main.qml
@@ -49,23 +49,11 @@ Controls2.ApplicationWindow {
49 isDraft: mailListView.isDraft 49 isDraft: mailListView.isDraft
50 } 50 }
51 51
52 KubeAction.Context {
53 id: folderListContext
54 property variant folder
55 folder: folderListView.currentFolder
56 }
57
58 KubeAction.Action { 52 KubeAction.Action {
59 id: replyAction 53 id: replyAction
60 actionId: "org.kde.kube.actions.reply" 54 actionId: "org.kde.kube.actions.reply"
61 context: maillistcontext 55 context: maillistcontext
62 } 56 }
63
64 KubeAction.Action {
65 id: syncAction
66 actionId: "org.kde.kube.actions.synchronize"
67 context: folderListContext
68 }
69 //END Actions 57 //END Actions
70 58
71 //BEGIN ActionHandler 59 //BEGIN ActionHandler
@@ -103,12 +91,17 @@ Controls2.ApplicationWindow {
103 mail: mailListView.currentMail 91 mail: mailListView.currentMail
104 } 92 }
105 93
94 KubeFramework.FolderController {
95 id: folderController
96 folder: folderListView.currentFolder
97 }
98
106 99
107 //BEGIN Shortcuts 100 //BEGIN Shortcuts
108 Shortcut { 101 Shortcut {
109 sequence: StandardKey.Refresh 102 sequence: StandardKey.Refresh
110 onActivated: syncAction.execute() 103 onActivated: folderController.synchronizeAction.execute()
111 enabled: syncAction.ready 104 enabled: folderController.synchronizeAction.enabled
112 } 105 }
113 Shortcut { 106 Shortcut {
114 sequence: StandardKey.Delete 107 sequence: StandardKey.Delete