diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-22 20:21:26 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-22 20:21:26 +0100 |
commit | 88bbb10880d65af417689c7ad3455acf39a33215 (patch) | |
tree | a08c72761d46c628ad148096b960927a8b215b6e /applications/kube-mail/package/contents/ui/MailViewer.qml | |
parent | adc2201b961c31ffe0206efd7dd7d309bf5a8082 (diff) | |
download | kube-88bbb10880d65af417689c7ad3455acf39a33215.tar.gz kube-88bbb10880d65af417689c7ad3455acf39a33215.zip |
Moved the mail parsing into it's own little corner
Diffstat (limited to 'applications/kube-mail/package/contents/ui/MailViewer.qml')
-rw-r--r-- | applications/kube-mail/package/contents/ui/MailViewer.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/applications/kube-mail/package/contents/ui/MailViewer.qml b/applications/kube-mail/package/contents/ui/MailViewer.qml index 5929bea0..1d305297 100644 --- a/applications/kube-mail/package/contents/ui/MailViewer.qml +++ b/applications/kube-mail/package/contents/ui/MailViewer.qml | |||
@@ -3,8 +3,11 @@ import QtQuick.Controls 1.3 | |||
3 | import QtQuick.Layouts 1.1 | 3 | import QtQuick.Layouts 1.1 |
4 | import QtWebKit 3.0 | 4 | import QtWebKit 3.0 |
5 | 5 | ||
6 | import org.kde.kube.mail 1.0 as Mail | ||
7 | |||
6 | Item { | 8 | Item { |
7 | id: root | 9 | id: root |
10 | property variant message; | ||
8 | property string html; | 11 | property string html; |
9 | 12 | ||
10 | WebView { | 13 | WebView { |
@@ -31,4 +34,10 @@ Item { | |||
31 | // The file:/// argument is necessary so local icons are found | 34 | // The file:/// argument is necessary so local icons are found |
32 | webview.loadHtml(html, "file:///"); | 35 | webview.loadHtml(html, "file:///"); |
33 | } | 36 | } |
37 | |||
38 | Mail.MessageParser { | ||
39 | id: messageParser | ||
40 | message: root.message | ||
41 | } | ||
42 | html: messageParser.html | ||
34 | } | 43 | } |