diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-04-28 16:30:22 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-04-28 16:30:22 +0200 |
commit | 90a5016995f43a5f65b7877dc206092af581f29e (patch) | |
tree | 13e4a2a682680cd4be022d0e8f01868ca7d3ee77 | |
parent | f428de57a2f0d6ab1d2353048f7681d35d895adb (diff) | |
download | kube-90a5016995f43a5f65b7877dc206092af581f29e.tar.gz kube-90a5016995f43a5f65b7877dc206092af581f29e.zip |
Use the actual MailViewer again.
-rw-r--r-- | components/package/contents/ui/MailViewer.qml | 5 | ||||
-rw-r--r-- | components/package/contents/ui/SingleMailView.qml | 14 |
2 files changed, 7 insertions, 12 deletions
diff --git a/components/package/contents/ui/MailViewer.qml b/components/package/contents/ui/MailViewer.qml index c51e2666..825d4aab 100644 --- a/components/package/contents/ui/MailViewer.qml +++ b/components/package/contents/ui/MailViewer.qml | |||
@@ -8,13 +8,18 @@ Item { | |||
8 | id: root | 8 | id: root |
9 | property variant message; | 9 | property variant message; |
10 | property string html; | 10 | property string html; |
11 | property int desiredHeight: topPartLoader.height; | ||
11 | 12 | ||
12 | Rectangle { | 13 | Rectangle { |
13 | id: rootRectangle | 14 | id: rootRectangle |
14 | anchors.fill: parent | 15 | anchors.fill: parent |
16 | anchors.margins: 0 | ||
15 | ScrollView { | 17 | ScrollView { |
16 | id: scrollView | 18 | id: scrollView |
17 | anchors.fill: parent | 19 | anchors.fill: parent |
20 | anchors.margins: 0 | ||
21 | horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff | ||
22 | verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff | ||
18 | MessagePartTree { | 23 | MessagePartTree { |
19 | id: topPartLoader | 24 | id: topPartLoader |
20 | width: rootRectangle.width | 25 | width: rootRectangle.width |
diff --git a/components/package/contents/ui/SingleMailView.qml b/components/package/contents/ui/SingleMailView.qml index 4f434edc..0248c3bd 100644 --- a/components/package/contents/ui/SingleMailView.qml +++ b/components/package/contents/ui/SingleMailView.qml | |||
@@ -148,7 +148,7 @@ Rectangle { | |||
148 | } | 148 | } |
149 | } | 149 | } |
150 | 150 | ||
151 | Text { | 151 | MailViewer { |
152 | id: body | 152 | id: body |
153 | 153 | ||
154 | anchors { | 154 | anchors { |
@@ -159,20 +159,10 @@ Rectangle { | |||
159 | } | 159 | } |
160 | 160 | ||
161 | width: header.width - Kirigami.Units.largeSpacing * 2 | 161 | width: header.width - Kirigami.Units.largeSpacing * 2 |
162 | height: desiredHeight | ||
162 | 163 | ||
163 | text: model.mimeMessage | ||
164 | |||
165 | clip: true | ||
166 | wrapMode: Text.WordWrap | ||
167 | renderType: Text.NativeRendering | ||
168 | color: Kirigami.Theme.textColor | ||
169 | } | ||
170 | |||
171 | /* | ||
172 | MailViewer { | ||
173 | message: model.mimeMessage | 164 | message: model.mimeMessage |
174 | } | 165 | } |
175 | */ | ||
176 | 166 | ||
177 | Item { | 167 | Item { |
178 | id: footer | 168 | id: footer |