From c3ba13d4240005cb9e7bdaca5977114e74bd0e9a Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 20 Mar 2017 09:33:42 +0100 Subject: Support synchronizing individual accounts --- components/mail/contents/ui/Mail.qml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'components/mail/contents/ui') diff --git a/components/mail/contents/ui/Mail.qml b/components/mail/contents/ui/Mail.qml index 3cc0d4f4..acb75554 100644 --- a/components/mail/contents/ui/Mail.qml +++ b/components/mail/contents/ui/Mail.qml @@ -237,6 +237,23 @@ Controls2.ApplicationWindow { Item { id: accountName + KubeFramework.FolderController { + id: accountNameFolderController + accountId: accountSwitcher.accountId + } + + Menu { + id: contextMenu + title: "Edit" + + MenuItem { + text: "Synchronize" + onTriggered: { + accountNameFolderController.synchronizeAction.execute() + } + } + } + anchors { top: newMailButton.bottom topMargin: Kirigami.Units.smallSpacing @@ -245,6 +262,14 @@ Controls2.ApplicationWindow { width: parent.width height: Kirigami.Units.gridUnit * 2 + MouseArea { + anchors.fill: parent + acceptedButtons: Qt.RightButton + onClicked: { + contextMenu.popup() + } + } + Text { anchors { bottom: parent.bottom -- cgit v1.2.3