summaryrefslogtreecommitdiffstats
path: root/framework/qml/MailListView.qml
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2017-04-26 10:50:12 +0200
committerMichael Bohlender <michael.bohlender@kdemail.net>2017-04-26 10:50:12 +0200
commita7e6a9cd045fc09cd3fb9db81c1773c2ca34c2f4 (patch)
tree6055722bd038bd45942eaf6dac1007723158c727 /framework/qml/MailListView.qml
parent6a01712a5e0312b3462bb1422334488c5068ce7c (diff)
downloadkube-a7e6a9cd045fc09cd3fb9db81c1773c2ca34c2f4.tar.gz
kube-a7e6a9cd045fc09cd3fb9db81c1773c2ca34c2f4.zip
introduce icon button, use it in maillistview
Diffstat (limited to 'framework/qml/MailListView.qml')
-rw-r--r--framework/qml/MailListView.qml20
1 files changed, 10 insertions, 10 deletions
diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml
index b7b09d61..a0921a6e 100644
--- a/framework/qml/MailListView.qml
+++ b/framework/qml/MailListView.qml
@@ -261,40 +261,40 @@ Item {
261 spacing: Kube.Units.smallSpacing 261 spacing: Kube.Units.smallSpacing
262 opacity: 0.7 262 opacity: 0.7
263 263
264 Kube.Button { 264 Kube.IconButton {
265 id: readButton 265 id: readButton
266 text: "r" 266 iconName: Kube.Icons.markAsRead
267 visible: enabled 267 visible: enabled
268 enabled: model.unread 268 enabled: model.unread
269 onClicked: Kube.Fabric.postMessage(Kube.Messages.markAsRead, {"mail": model.mail}) 269 onClicked: Kube.Fabric.postMessage(Kube.Messages.markAsRead, {"mail": model.mail})
270 } 270 }
271 Kube.Button { 271 Kube.IconButton {
272 id: unreadButton 272 id: unreadButton
273 text: "u" 273 iconName: Kube.Icons.markAsUnread
274 visible: enabled 274 visible: enabled
275 enabled: !model.unread 275 enabled: !model.unread
276 onClicked: Kube.Fabric.postMessage(Kube.Messages.markAsUnread, {"mail": model.mail}) 276 onClicked: Kube.Fabric.postMessage(Kube.Messages.markAsUnread, {"mail": model.mail})
277 } 277 }
278 278
279 Kube.Button { 279 Kube.IconButton {
280 id: importantButton 280 id: importantButton
281 text: "i" 281 iconName: Kube.Icons.markImportant
282 visible: enabled 282 visible: enabled
283 enabled: !!model.mail 283 enabled: !!model.mail
284 onClicked: Kube.Fabric.postMessage(Kube.Messages.toggleImportant, {"mail": model.mail, "important": model.important}) 284 onClicked: Kube.Fabric.postMessage(Kube.Messages.toggleImportant, {"mail": model.mail, "important": model.important})
285 } 285 }
286 286
287 Kube.Button { 287 Kube.IconButton {
288 id: deleteButton 288 id: deleteButton
289 text: "d" 289 iconName: Kube.Icons.moveToTrash
290 visible: enabled 290 visible: enabled
291 enabled: !!model.mail 291 enabled: !!model.mail
292 onClicked: Kube.Fabric.postMessage(Kube.Messages.moveToTrash, {"mail": model.mail}) 292 onClicked: Kube.Fabric.postMessage(Kube.Messages.moveToTrash, {"mail": model.mail})
293 } 293 }
294 294
295 Kube.Button { 295 Kube.IconButton {
296 id: restoreButton 296 id: restoreButton
297 text: "re" 297 iconName: Kube.Icons.undo
298 visible: enabled 298 visible: enabled
299 enabled: !!model.trash 299 enabled: !!model.trash
300 onClicked: Kube.Fabric.postMessage(Kube.Messages.restoreFromTrash, {"mail": model.mail}) 300 onClicked: Kube.Fabric.postMessage(Kube.Messages.restoreFromTrash, {"mail": model.mail})