summaryrefslogtreecommitdiffstats
path: root/components/package/contents/ui/SingleMailView.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/SingleMailView.qml
parenta74060d751cdf2346d04c1d009f8d8b629561d5d (diff)
downloadkube-f3fe0d6d2c52604bf0dc077676f84f5bc87e600b.tar.gz
kube-f3fe0d6d2c52604bf0dc077676f84f5bc87e600b.zip
display attchments as flow
Diffstat (limited to 'components/package/contents/ui/SingleMailView.qml')
-rw-r--r--components/package/contents/ui/SingleMailView.qml30
1 files changed, 29 insertions, 1 deletions
diff --git a/components/package/contents/ui/SingleMailView.qml b/components/package/contents/ui/SingleMailView.qml
index 76f0ef2e..732bec3b 100644
--- a/components/package/contents/ui/SingleMailView.qml
+++ b/components/package/contents/ui/SingleMailView.qml
@@ -72,7 +72,6 @@ Rectangle {
72 } 72 }
73 73
74 Rectangle { 74 Rectangle {
75
76 anchors.bottom: parent.bottom 75 anchors.bottom: parent.bottom
77 76
78 height: 1 77 height: 1
@@ -124,6 +123,8 @@ Rectangle {
124 implicitHeight: header.height + body.height + (Kirigami.Units.gridUnit * 2.5) * 2 + footer.height 123 implicitHeight: header.height + body.height + (Kirigami.Units.gridUnit * 2.5) * 2 + footer.height
125 width: parent.width - Kirigami.Units.gridUnit * 4 124 width: parent.width - Kirigami.Units.gridUnit * 4
126 125
126 color: Kirigami.Theme.viewBackgroundColor
127
127 //TODO bookmark 128 //TODO bookmark
128 /* 129 /*
129 ToolButton { 130 ToolButton {
@@ -255,6 +256,33 @@ Rectangle {
255 } 256 }
256 //END header 257 //END header
257 258
259 Flow {
260 id: attachments
261
262 anchors {
263 top: header.bottom
264 topMargin: Kirigami.Units.smallSpacing
265 horizontalCenter: parent.horizontalCenter
266 }
267
268 width: parent.width - Kirigami.Units.gridUnit * 2
269 height: Kirigami.Units.gridUnit * 2
270
271 layoutDirection: Qt.RightToLeft
272 spacing: Kirigami.Units.smallSpacing
273
274 Repeater {
275 model: body.attachments
276
277 delegate: AttachmentDelegate {
278 name: model.name
279 icon: "mail-attachment"
280
281 //TODO size encrypted signed type
282 }
283 }
284 }
285
258 MailViewer { 286 MailViewer {
259 id: body 287 id: body
260 288