From 1ef70a4c8c2bb9fd70d5bc73614b09177b6b970c Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 2 Jan 2017 00:19:01 +0100 Subject: Foldercontroller --- components/mail/contents/ui/main.qml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) (limited to 'components/mail/contents/ui/main.qml') 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 { isDraft: mailListView.isDraft } - KubeAction.Context { - id: folderListContext - property variant folder - folder: folderListView.currentFolder - } - KubeAction.Action { id: replyAction actionId: "org.kde.kube.actions.reply" context: maillistcontext } - - KubeAction.Action { - id: syncAction - actionId: "org.kde.kube.actions.synchronize" - context: folderListContext - } //END Actions //BEGIN ActionHandler @@ -103,12 +91,17 @@ Controls2.ApplicationWindow { mail: mailListView.currentMail } + KubeFramework.FolderController { + id: folderController + folder: folderListView.currentFolder + } + //BEGIN Shortcuts Shortcut { sequence: StandardKey.Refresh - onActivated: syncAction.execute() - enabled: syncAction.ready + onActivated: folderController.synchronizeAction.execute() + enabled: folderController.synchronizeAction.enabled } Shortcut { sequence: StandardKey.Delete -- cgit v1.2.3