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.qml11
1 files changed, 5 insertions, 6 deletions
diff --git a/components/mailviewer/contents/ui/MailPart.qml b/components/mailviewer/contents/ui/MailPart.qml
index 4fa2bd73..e570ebaa 100644
--- a/components/mailviewer/contents/ui/MailPart.qml
+++ b/components/mailviewer/contents/ui/MailPart.qml
@@ -28,10 +28,6 @@ Item {
28 property variant date 28 property variant date
29 height: childrenRect.height 29 height: childrenRect.height
30 30
31 MailDataModel {
32 id: visualModel
33 }
34
35 Rectangle { 31 Rectangle {
36 id: border 32 id: border
37 anchors { 33 anchors {
@@ -40,13 +36,14 @@ Item {
40 leftMargin: Kube.Units.smallSpacing 36 leftMargin: Kube.Units.smallSpacing
41 } 37 }
42 color: Kube.Colors.lightgrey 38 color: Kube.Colors.lightgrey
43 height: partListView.height 39 height: partListView.height + sender.height
44 width: Kube.Units.smallSpacing 40 width: Kube.Units.smallSpacing
45 } 41 }
46 42
47 Text { 43 Text {
48 id: sender 44 id: sender
49 anchors { 45 anchors {
46 top: parent.top
50 left: border.right 47 left: border.right
51 leftMargin: Kube.Units.smallSpacing 48 leftMargin: Kube.Units.smallSpacing
52 } 49 }
@@ -56,13 +53,15 @@ Item {
56 } 53 }
57 ListView { 54 ListView {
58 id: partListView 55 id: partListView
59 model: visualModel
60 anchors { 56 anchors {
61 top: sender.bottom 57 top: sender.bottom
62 left: border.right 58 left: border.right
63 margins: Kube.Units.smallSpacing 59 margins: Kube.Units.smallSpacing
64 leftMargin: Kube.Units.smallSpacing 60 leftMargin: Kube.Units.smallSpacing
65 } 61 }
62 model: MailDataModel {
63 id: visualModel
64 }
66 spacing: 7 65 spacing: 7
67 height: contentHeight 66 height: contentHeight
68 width: parent.width - Kube.Units.smallSpacing * 3 67 width: parent.width - Kube.Units.smallSpacing * 3