diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-02-20 19:06:21 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-06-29 10:09:00 +0200 |
commit | 35f4d554203640bc4bf0e072f8f263396100cf52 (patch) | |
tree | e40aa865f48f8b79949f4dee1d596b30f9713108 /components/mailviewer/qml/main.qml | |
parent | 7ce196b5552b2acfa2d54e46809dd4248b63a156 (diff) | |
download | kube-35f4d554203640bc4bf0e072f8f263396100cf52.tar.gz kube-35f4d554203640bc4bf0e072f8f263396100cf52.zip |
Support loading a mime message from a file
Diffstat (limited to 'components/mailviewer/qml/main.qml')
-rw-r--r-- | components/mailviewer/qml/main.qml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/components/mailviewer/qml/main.qml b/components/mailviewer/qml/main.qml index e69dd5a2..6de7e910 100644 --- a/components/mailviewer/qml/main.qml +++ b/components/mailviewer/qml/main.qml | |||
@@ -17,14 +17,25 @@ | |||
17 | */ | 17 | */ |
18 | 18 | ||
19 | import QtQuick 2.7 | 19 | import QtQuick 2.7 |
20 | import QtQuick.Controls 2.0 as Controls2 | 20 | import QtQuick.Controls 2.0 |
21 | import org.kube.framework 1.0 as Kube | ||
21 | 22 | ||
22 | Controls2.ApplicationWindow { | 23 | ApplicationWindow { |
23 | id: app | 24 | id: app |
24 | height: 900 | 25 | height: 900 |
25 | width: 1500 | 26 | width: 1500 |
26 | 27 | ||
28 | Kube.File { | ||
29 | id: file | ||
30 | path: "/build/kube/message.mime" | ||
31 | } | ||
32 | Kube.MessageParser { | ||
33 | id: messageParser | ||
34 | message: file.data | ||
35 | } | ||
36 | |||
27 | MailViewer { | 37 | MailViewer { |
28 | visible: true | 38 | visible: true |
39 | model: messageParser.parts | ||
29 | } | 40 | } |
30 | } | 41 | } |