From 5ac5f26a109cbf985b35d11fe6392d5fcb3a5050 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Wed, 16 Dec 2015 15:26:31 +0100 Subject: delete, important, unread actions for maillist controller and action buttons in toolbar --- .../kmail-quick/package/contents/ui/main.qml | 39 ++++++++++++++++++---- 1 file changed, 33 insertions(+), 6 deletions(-) (limited to 'applications') diff --git a/applications/kmail-quick/package/contents/ui/main.qml b/applications/kmail-quick/package/contents/ui/main.qml index 63b66c6d..88d2edde 100644 --- a/applications/kmail-quick/package/contents/ui/main.qml +++ b/applications/kmail-quick/package/contents/ui/main.qml @@ -51,7 +51,6 @@ ApplicationWindow { Row { anchors.fill: parent - PlasmaComponents.ToolButton { height: parent.height @@ -60,14 +59,42 @@ ApplicationWindow { text: "Compose" } - } - PlasmaComponents.ToolButton { + PlasmaComponents.ToolButton { + + height: parent.height + + iconName: "mail-mark-unread" + text: "Mark Unread" + + onClicked: { + mailList.markMailUnread(true) + } + } + + PlasmaComponents.ToolButton { + + height: parent.height + + iconName: "mail-mark-important" + text: "Mark Important" + + onClicked: { + mailList.markMailImportant(true) + } + } + + PlasmaComponents.ToolButton { - anchors.right: parent.right + height: parent.height - //FIXME: proper item name - iconName: "applications-system" + iconName: "edit-delete" + text: "Delete Mail" + + onClicked: { + mailList.deleteMail() + } + } } } -- cgit v1.2.3