diff options
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 | } |