diff options
Diffstat (limited to 'components/mailviewer/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 | } |