diff options
Diffstat (limited to 'framework/qml')
-rw-r--r-- | framework/qml/Icons.qml | 1 | ||||
-rw-r--r-- | framework/qml/MailListView.qml | 27 |
2 files changed, 21 insertions, 7 deletions
diff --git a/framework/qml/Icons.qml b/framework/qml/Icons.qml index 252f9f43..0a633463 100644 --- a/framework/qml/Icons.qml +++ b/framework/qml/Icons.qml | |||
@@ -33,6 +33,7 @@ Item { | |||
33 | property string success_inverted: "dialog-ok-inverted" | 33 | property string success_inverted: "dialog-ok-inverted" |
34 | 34 | ||
35 | property string markAsRead: "mail-mark-unread-new" | 35 | property string markAsRead: "mail-mark-unread-new" |
36 | property string markAsUnread: "mail-mark-unread-new" | ||
36 | property string markImportant: "mail-mark-important" | 37 | property string markImportant: "mail-mark-important" |
37 | property string undo: "edit-undo" | 38 | property string undo: "edit-undo" |
38 | property string moveToTrash: "edit-delete" | 39 | property string moveToTrash: "edit-delete" |
diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml index 28386442..1e0123cc 100644 --- a/framework/qml/MailListView.qml +++ b/framework/qml/MailListView.qml | |||
@@ -48,28 +48,40 @@ Item { | |||
48 | Controls.ToolButton { | 48 | Controls.ToolButton { |
49 | iconName: Kube.Icons.markAsRead | 49 | iconName: Kube.Icons.markAsRead |
50 | text: qsTr("Mark As Read") | 50 | text: qsTr("Mark As Read") |
51 | tooltip: text | ||
51 | enabled: mailController.markAsReadAction.enabled | 52 | enabled: mailController.markAsReadAction.enabled |
52 | tooltip: qsTr("mark mail as read") | 53 | visible: enabled |
53 | onClicked: { | 54 | onClicked: { |
54 | mailController.markAsReadAction.execute() | 55 | mailController.markAsReadAction.execute() |
55 | } | 56 | } |
56 | } | 57 | } |
57 | 58 | ||
58 | Controls.ToolButton { | 59 | Controls.ToolButton { |
60 | iconName: Kube.Icons.markAsUnread | ||
61 | text: qsTr("Mark As Unread") | ||
62 | tooltip: text | ||
63 | enabled: mailController.markAsUnreadAction.enabled | ||
64 | visible: enabled | ||
65 | onClicked: { | ||
66 | mailController.markAsUnreadAction.execute() | ||
67 | } | ||
68 | } | ||
69 | |||
70 | Controls.ToolButton { | ||
59 | iconName: Kube.Icons.markImportant | 71 | iconName: Kube.Icons.markImportant |
60 | text: qsTr("Mark Important") | 72 | text: qsTr("Toggle Important") |
61 | enabled: mailController.markAsImportantAction.enabled | 73 | tooltip: text |
62 | tooltip: qsTr("mark mail as important") | 74 | enabled: mailController.toggleImportantAction.enabled |
63 | onClicked: { | 75 | onClicked: { |
64 | mailController.markAsImportantAction.execute() | 76 | mailController.toggleImportantAction.execute() |
65 | } | 77 | } |
66 | } | 78 | } |
67 | 79 | ||
68 | Controls.ToolButton { | 80 | Controls.ToolButton { |
69 | iconName: Kube.Icons.moveToTrash | 81 | iconName: Kube.Icons.moveToTrash |
70 | text: qsTr("Delete Mail") | 82 | text: qsTr("Delete Mail") |
83 | tooltip: text | ||
71 | enabled: mailController.moveToTrashAction.enabled | 84 | enabled: mailController.moveToTrashAction.enabled |
72 | tooltip: qsTr("delete email") | ||
73 | onClicked: { | 85 | onClicked: { |
74 | mailController.moveToTrashAction.execute() | 86 | mailController.moveToTrashAction.execute() |
75 | } | 87 | } |
@@ -78,8 +90,9 @@ Item { | |||
78 | Controls.ToolButton { | 90 | Controls.ToolButton { |
79 | iconName: Kube.Icons.undo | 91 | iconName: Kube.Icons.undo |
80 | text: qsTr("Restore Mail") | 92 | text: qsTr("Restore Mail") |
93 | tooltip: text | ||
81 | enabled: mailController.restoreFromTrashAction.enabled | 94 | enabled: mailController.restoreFromTrashAction.enabled |
82 | tooltip: qsTr("restore email") | 95 | visible: enabled |
83 | onClicked: { | 96 | onClicked: { |
84 | mailController.restoreFromTrashAction.execute() | 97 | mailController.restoreFromTrashAction.execute() |
85 | } | 98 | } |