summaryrefslogtreecommitdiffstats
path: root/components/package/contents/ui/MailViewer.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/package/contents/ui/MailViewer.qml')
-rw-r--r--components/package/contents/ui/MailViewer.qml39
1 files changed, 30 insertions, 9 deletions
diff --git a/components/package/contents/ui/MailViewer.qml b/components/package/contents/ui/MailViewer.qml
index 5365be66..f8e0a33b 100644
--- a/components/package/contents/ui/MailViewer.qml
+++ b/components/package/contents/ui/MailViewer.qml
@@ -22,13 +22,14 @@ import QtQuick.Controls 1.4
22import QtQuick.Layouts 1.1 22import QtQuick.Layouts 1.1
23 23
24import org.kube.framework.domain 1.0 as KubeFramework 24import org.kube.framework.domain 1.0 as KubeFramework
25import org.kube.mailviewer 1.0 as MV
25 26
26Item { 27Item {
27 id: root 28 id: root
28 property variant message; 29 property variant message;
29 property string html; 30 property string html;
30 property bool enablePartTreeView : false 31 property bool enablePartTreeView : true;
31 property int desiredHeight: enablePartTreeView ? topPartLoader.height+450 : topPartLoader.height; 32 property int desiredHeight: enablePartTreeView ? topPartLoader.height + newMailViewer.height + mailStructure.height + 50 : topPartLoader.height + newMailViewer.height + 50;
32 33
33 Rectangle { 34 Rectangle {
34 id: rootRectangle 35 id: rootRectangle
@@ -40,7 +41,20 @@ Item {
40 anchors.margins: 0 41 anchors.margins: 0
41 verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff 42 verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff
42 Column { 43 Column {
43 spacing:2 44 spacing: 2
45 Text {
46 text: "New Mailviewer:"
47 color: "blue"
48 }
49 MV.MailViewer {
50 id: newMailViewer
51 debug: false
52 width: rootRectangle.width
53 }
54 Text {
55 text: "Old Mailviewer:"
56 color: "blue"
57 }
44 MessagePartTree { 58 MessagePartTree {
45 id: topPartLoader 59 id: topPartLoader
46 // width: rootRectangle.width 60 // width: rootRectangle.width
@@ -48,6 +62,7 @@ Item {
48 width: topPartLoader.contentWidth >= rootRectangle.width ? topPartLoader.contentWidth : rootRectangle.width 62 width: topPartLoader.contentWidth >= rootRectangle.width ? topPartLoader.contentWidth : rootRectangle.width
49 } 63 }
50 TreeView { 64 TreeView {
65 id: mailStructure
51 visible: enablePartTreeView 66 visible: enablePartTreeView
52 width: rootRectangle.width 67 width: rootRectangle.width
53 height: 400 68 height: 400
@@ -57,16 +72,22 @@ Item {
57 width: 300 72 width: 300
58 } 73 }
59 TableViewColumn { 74 TableViewColumn {
60 role: "isHidden" 75 role: "embeded"
61 title: "Hidden" 76 title: "Embeded"
77 width: 60
78 }
79 TableViewColumn {
80 role: "securityLevel"
81 title: "SecurityLevel"
62 width: 60 82 width: 60
63 } 83 }
64 TableViewColumn { 84 TableViewColumn {
65 role: "text" 85 role: "content"
66 title: "Text" 86 title: "Content"
67 width: 600 87 width: 200
68 } 88 }
69 model: messageParser.partTree 89 //model: messageParser.partTree
90 model: messageParser.newTree
70 } 91 }
71 } 92 }
72 } 93 }