summaryrefslogtreecommitdiffstats
path: root/components/package/contents/ui/MailViewer.qml
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2016-12-07 22:25:36 +0100
committerMichael Bohlender <michael.bohlender@kdemail.net>2016-12-07 22:25:36 +0100
commitf3fe0d6d2c52604bf0dc077676f84f5bc87e600b (patch)
tree0ecf3d8af6a2bd9ff77b25ce45492378b29656ae /components/package/contents/ui/MailViewer.qml
parenta74060d751cdf2346d04c1d009f8d8b629561d5d (diff)
downloadkube-f3fe0d6d2c52604bf0dc077676f84f5bc87e600b.tar.gz
kube-f3fe0d6d2c52604bf0dc077676f84f5bc87e600b.zip
display attchments as flow
Diffstat (limited to 'components/package/contents/ui/MailViewer.qml')
-rw-r--r--components/package/contents/ui/MailViewer.qml47
1 files changed, 3 insertions, 44 deletions
diff --git a/components/package/contents/ui/MailViewer.qml b/components/package/contents/ui/MailViewer.qml
index 28414cac..f5e10c84 100644
--- a/components/package/contents/ui/MailViewer.qml
+++ b/components/package/contents/ui/MailViewer.qml
@@ -27,7 +27,8 @@ Item {
27 id: root 27 id: root
28 property variant message; 28 property variant message;
29 property string html; 29 property string html;
30 property int desiredHeight: topPartLoader.height + newMailViewer.height + attachments.height + 20 30 property int desiredHeight: topPartLoader.height + newMailViewer.height + 20
31 property variant attachments
31 32
32 clip: true 33 clip: true
33 34
@@ -57,48 +58,6 @@ Item {
57 //END old mail viewer 58 //END old mail viewer
58 59
59 Controls1.TreeView { 60 Controls1.TreeView {
60 id: attachments
61 anchors {
62 top: newMailViewer.bottom
63 topMargin: 20
64 }
65 //visible: messageParser.attachments.rowCount() > 0
66 width: parent.width
67 height: 200
68 Controls1.TableViewColumn {
69 role: "name"
70 title: "Filename"
71 width: 300
72 }
73 Controls1.TableViewColumn {
74 role: "type"
75 title: "Type"
76 width: 60
77 }
78 Controls1.TableViewColumn {
79 role: "icon"
80 title: "Icon"
81 width: 60
82 }
83 Controls1.TableViewColumn {
84 role: "size"
85 title: "Size"
86 width: 60
87 }
88 Controls1.TableViewColumn {
89 role: "encrypted"
90 title: "Encrypted"
91 width: 60
92 }
93 Controls1.TableViewColumn {
94 role: "signed"
95 title: "Signed"
96 width: 60
97 }
98 model: messageParser.attachments
99 }
100
101 Controls1.TreeView {
102 id: mailStructure 61 id: mailStructure
103 anchors.top: messageParser.attachments.rowCount() > 0 ? attachments.bottom : newMailViewer.bottom 62 anchors.top: messageParser.attachments.rowCount() > 0 ? attachments.bottom : newMailViewer.bottom
104 visible: newMailViewer.debug 63 visible: newMailViewer.debug
@@ -131,6 +90,6 @@ Item {
131 id: messageParser 90 id: messageParser
132 message: root.message 91 message: root.message
133 } 92 }
93 attachments: messageParser.attachments
134 html: messageParser.html 94 html: messageParser.html
135
136} 95}