summaryrefslogtreecommitdiffstats
path: root/components/mail/contents
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-03-13 23:57:18 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-03-13 23:57:18 +0100
commit68f95cf68c3a8d29c2cc81929287eabb3a6d7682 (patch)
treefd2df971d1389a8072f6b99e1fbf2ef6f7553910 /components/mail/contents
parent5ec954917c9a59ce0ec8ba3a30b99bb9cd30e297 (diff)
downloadkube-68f95cf68c3a8d29c2cc81929287eabb3a6d7682.tar.gz
kube-68f95cf68c3a8d29c2cc81929287eabb3a6d7682.zip
Sync action
Diffstat (limited to 'components/mail/contents')
-rw-r--r--components/mail/contents/ui/main.qml21
1 files changed, 21 insertions, 0 deletions
diff --git a/components/mail/contents/ui/main.qml b/components/mail/contents/ui/main.qml
index 83bd85b2..414e3f5d 100644
--- a/components/mail/contents/ui/main.qml
+++ b/components/mail/contents/ui/main.qml
@@ -52,6 +52,12 @@ ApplicationWindow {
52 mail: mailListView.currentMail 52 mail: mailListView.currentMail
53 } 53 }
54 54
55 KubeAction.Context {
56 id: folderListContext
57 property variant folder
58 folder: folderListView.currentFolder
59 }
60
55 KubeAction.Action { 61 KubeAction.Action {
56 id: markAsReadAction 62 id: markAsReadAction
57 actionId: "org.kde.kube.actions.mark-as-read" 63 actionId: "org.kde.kube.actions.mark-as-read"
@@ -64,6 +70,12 @@ ApplicationWindow {
64 context: maillistcontext 70 context: maillistcontext
65 } 71 }
66 72
73 KubeAction.Action {
74 id: syncAction
75 actionId: "org.kde.kube.actions.synchronize"
76 context: folderListContext
77 }
78
67 //UI 79 //UI
68 toolBar: ToolBar { 80 toolBar: ToolBar {
69 81
@@ -140,6 +152,15 @@ ApplicationWindow {
140 } 152 }
141 } 153 }
142 154
155 PlasmaComponents.ToolButton {
156 height: parent.height
157 iconName: "view-refresh"
158 text: "Sync"
159 enabled: syncAction.ready
160 onClicked: {
161 syncAction.execute()
162 }
163 }
143 164
144 } 165 }
145 Rectangle { 166 Rectangle {