summaryrefslogtreecommitdiffstats
path: root/framework/src/domain/messageparser_new.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-23 10:51:59 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-23 10:51:59 +0200
commit5d529c9252c386abaa76ec1a981ff99f50ce3dc0 (patch)
treefffb4d57511e69631137fe1f6bfce8638d8a8506 /framework/src/domain/messageparser_new.cpp
parente7b821c4308c6ed15daed911184980149cce38ff (diff)
downloadkube-5d529c9252c386abaa76ec1a981ff99f50ce3dc0.tar.gz
kube-5d529c9252c386abaa76ec1a981ff99f50ce3dc0.zip
Linkify plain text mails
Diffstat (limited to 'framework/src/domain/messageparser_new.cpp')
-rw-r--r--framework/src/domain/messageparser_new.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/src/domain/messageparser_new.cpp b/framework/src/domain/messageparser_new.cpp
index c353becf..7e7dbfa6 100644
--- a/framework/src/domain/messageparser_new.cpp
+++ b/framework/src/domain/messageparser_new.cpp
@@ -19,6 +19,7 @@
19 19
20#include "messageparser.h" 20#include "messageparser.h"
21#include "mimetreeparser/interface.h" 21#include "mimetreeparser/interface.h"
22#include "htmlutils.h"
22 23
23#include <QDebug> 24#include <QDebug>
24#include <QTextDocument> 25#include <QTextDocument>
@@ -470,7 +471,7 @@ QVariant NewModel::data(const QModelIndex &index, int role) const
470 } 471 }
471 } else { //We assume plain 472 } else { //We assume plain
472 //We alwas do richtext (so we get highlighted links and stuff). 473 //We alwas do richtext (so we get highlighted links and stuff).
473 return Qt::convertFromPlainText(text); 474 return HtmlUtils::linkify(Qt::convertFromPlainText(text));
474 } 475 }
475 return text; 476 return text;
476 } 477 }