diff options
author | Sandro Knauß <sknauss@kde.org> | 2016-07-19 01:38:54 +0200 |
---|---|---|
committer | Sandro Knauß <sknauss@kde.org> | 2016-07-19 01:38:54 +0200 |
commit | fc7e7f1024e79287b85595ca29f00c708bbe8b24 (patch) | |
tree | f1bd23dd7829c1c91d9c12e35995d5ef11d2493a /framework/domain/messageparser.cpp | |
parent | 57429a6ec932978dbefd1c520ca98077c1c733a7 (diff) | |
download | kube-fc7e7f1024e79287b85595ca29f00c708bbe8b24.tar.gz kube-fc7e7f1024e79287b85595ca29f00c708bbe8b24.zip |
update change from mimetreeparser
Diffstat (limited to 'framework/domain/messageparser.cpp')
-rw-r--r-- | framework/domain/messageparser.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/framework/domain/messageparser.cpp b/framework/domain/messageparser.cpp index 7be5e052..8363e119 100644 --- a/framework/domain/messageparser.cpp +++ b/framework/domain/messageparser.cpp | |||
@@ -20,7 +20,6 @@ | |||
20 | 20 | ||
21 | #include "stringhtmlwriter.h" | 21 | #include "stringhtmlwriter.h" |
22 | #include "objecttreesource.h" | 22 | #include "objecttreesource.h" |
23 | #include "csshelper.h" | ||
24 | 23 | ||
25 | #include <QFile> | 24 | #include <QFile> |
26 | #include <QImage> | 25 | #include <QImage> |
@@ -170,11 +169,9 @@ void MessageParser::setMessage(const QVariant &message) | |||
170 | 169 | ||
171 | // render the mail | 170 | // render the mail |
172 | StringHtmlWriter htmlWriter; | 171 | StringHtmlWriter htmlWriter; |
173 | QImage paintDevice; | ||
174 | CSSHelper cssHelper(&paintDevice); | ||
175 | //temporary files only have the lifetime of the nodehelper, so we keep it around until the mail changes. | 172 | //temporary files only have the lifetime of the nodehelper, so we keep it around until the mail changes. |
176 | mNodeHelper = std::make_shared<MimeTreeParser::NodeHelper>(); | 173 | mNodeHelper = std::make_shared<MimeTreeParser::NodeHelper>(); |
177 | ObjectTreeSource source(&htmlWriter, &cssHelper); | 174 | ObjectTreeSource source(&htmlWriter); |
178 | MimeTreeParser::ObjectTreeParser otp(&source, mNodeHelper.get()); | 175 | MimeTreeParser::ObjectTreeParser otp(&source, mNodeHelper.get()); |
179 | 176 | ||
180 | otp.parseObjectTree(msg.data()); | 177 | otp.parseObjectTree(msg.data()); |