summaryrefslogtreecommitdiffstats
path: root/framework/qml/MailViewer.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-24 12:59:23 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-24 12:59:23 +0200
commitacf2a53fea8fdbe366627e45fffe87434e3c2e7e (patch)
treef241beb77b302df6967b34d7297f55f23eaf6dea /framework/qml/MailViewer.qml
parent9ed658053d5d41f4bf8c83072e6fa62990bd7ad8 (diff)
downloadkube-acf2a53fea8fdbe366627e45fffe87434e3c2e7e.tar.gz
kube-acf2a53fea8fdbe366627e45fffe87434e3c2e7e.zip
Attachment open and download buttons
We'll need proper icons though.
Diffstat (limited to 'framework/qml/MailViewer.qml')
-rw-r--r--framework/qml/MailViewer.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/framework/qml/MailViewer.qml b/framework/qml/MailViewer.qml
index d2c0a3be..14c4bc8a 100644
--- a/framework/qml/MailViewer.qml
+++ b/framework/qml/MailViewer.qml
@@ -286,11 +286,11 @@ Rectangle {
286 icon: model.iconName 286 icon: model.iconName
287 287
288 clip: true 288 clip: true
289 289 onDownload: {
290 //TODO size encrypted signed type 290 messageParser.attachments.saveAttachmentToDisk(messageParser.attachments.index(index, 0))
291 MouseArea { 291 }
292 anchors.fill: parent 292 onOpen: {
293 onClicked: messageParser.attachments.saveAttachmentToDisk(messageParser.attachments.index(index, 0)) 293 messageParser.attachments.openAttachment(messageParser.attachments.index(index, 0))
294 } 294 }
295 } 295 }
296 } 296 }