summaryrefslogtreecommitdiffstats
path: root/components/mailviewer/contents/ui/MailPart.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/mailviewer/contents/ui/MailPart.qml')
-rw-r--r--components/mailviewer/contents/ui/MailPart.qml41
1 files changed, 33 insertions, 8 deletions
diff --git a/components/mailviewer/contents/ui/MailPart.qml b/components/mailviewer/contents/ui/MailPart.qml
index bf534e85..7ff426e9 100644
--- a/components/mailviewer/contents/ui/MailPart.qml
+++ b/components/mailviewer/contents/ui/MailPart.qml
@@ -18,29 +18,54 @@
18 18
19import QtQuick 2.4 19import QtQuick 2.4
20 20
21import org.kube.framework 1.0 as Kube
22
21Item { 23Item {
22 id: root 24 id: root
23 property alias rootIndex: visualModel.rootIndex 25 property alias rootIndex: visualModel.rootIndex
24 property alias model: visualModel.model 26 property alias model: visualModel.model
25 property alias debug: visualModel.debug 27 property variant sender
26 height: partListView.height + 10 28 property variant date
27 width: parent.width 29 height: childrenRect.height
28 30
29 MailDataModel { 31 MailDataModel {
30 id: visualModel 32 id: visualModel
31 } 33 }
32 34
35 Rectangle {
36 id: border
37 anchors {
38 top: parent.top
39 left: parent.left
40 leftMargin: Kube.Units.smallSpacing
41 }
42 color: "lightgrey"
43 height: partListView.height
44 width: Kube.Units.smallSpacing
45 }
46
47 Text {
48 id: sender
49 anchors {
50 left: border.right
51 leftMargin: Kube.Units.smallSpacing
52 }
53
54 text: "sent by " + root.sender + " on " + root.date
55 color: "grey"
56 }
33 ListView { 57 ListView {
34 id: partListView 58 id: partListView
35 model: visualModel 59 model: visualModel
36 anchors { 60 anchors {
37 top: parent.top 61 top: sender.bottom
38 left: parent.left 62 left: border.right
39 margins: 5 63 margins: Kube.Units.smallSpacing
64 leftMargin: Kube.Units.smallSpacing
40 } 65 }
41 spacing: 5 66 spacing: 7
42 height: contentHeight 67 height: contentHeight
43 width: parent.width - 10 68 width: parent.width - Kube.Units.smallSpacing * 3
44 interactive: false 69 interactive: false
45 } 70 }
46} 71}