diff options
Diffstat (limited to 'components')
-rw-r--r-- | components/mailviewer/contents/ui/MailDataModel.qml | 8 | ||||
-rw-r--r-- | components/mailviewer/contents/ui/MailPart.qml | 11 |
2 files changed, 9 insertions, 10 deletions
diff --git a/components/mailviewer/contents/ui/MailDataModel.qml b/components/mailviewer/contents/ui/MailDataModel.qml index 029e8707..ec7f8e74 100644 --- a/components/mailviewer/contents/ui/MailDataModel.qml +++ b/components/mailviewer/contents/ui/MailDataModel.qml | |||
@@ -71,7 +71,7 @@ DelegateModel { | |||
71 | 71 | ||
72 | Column { | 72 | Column { |
73 | id: buttons | 73 | id: buttons |
74 | anchors.right: parent.left | 74 | anchors.left: parent.left |
75 | anchors.top: parent.top | 75 | anchors.top: parent.top |
76 | anchors.rightMargin: Kube.Units.smallSpacing | 76 | anchors.rightMargin: Kube.Units.smallSpacing |
77 | spacing: Kube.Units.smallSpacing | 77 | spacing: Kube.Units.smallSpacing |
@@ -107,8 +107,7 @@ DelegateModel { | |||
107 | anchors.topMargin: Kube.Units.smallSpacing | 107 | anchors.topMargin: Kube.Units.smallSpacing |
108 | anchors.top: buttons.bottom | 108 | anchors.top: buttons.bottom |
109 | anchors.bottom: partLoader.bottom | 109 | anchors.bottom: partLoader.bottom |
110 | anchors.right: parent.left | 110 | anchors.right: buttons.right |
111 | anchors.rightMargin: Kube.Units.smallSpacing | ||
112 | width: Kube.Units.smallSpacing | 111 | width: Kube.Units.smallSpacing |
113 | color: getColor(model.securityLevel) | 112 | color: getColor(model.securityLevel) |
114 | opacity: 0.5 | 113 | opacity: 0.5 |
@@ -118,7 +117,8 @@ DelegateModel { | |||
118 | id: partLoader | 117 | id: partLoader |
119 | anchors { | 118 | anchors { |
120 | top: parent.top | 119 | top: parent.top |
121 | left: parent.left | 120 | left: buttons.right |
121 | leftMargin: Kube.Units.smallSpacing | ||
122 | right: parent.right | 122 | right: parent.right |
123 | } | 123 | } |
124 | height: item ? item.contentHeight : 0 | 124 | height: item ? item.contentHeight : 0 |
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 |