From 3cf7ab9f042e50fc19748e1e09eb5af355f451ca Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Wed, 23 May 2018 16:33:30 +0300 Subject: Fix line break issue on timeline with long words fixes #193 --- src/timeline/TimelineItem.cc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/timeline') diff --git a/src/timeline/TimelineItem.cc b/src/timeline/TimelineItem.cc index 6f126d3d..166199cd 100644 --- a/src/timeline/TimelineItem.cc +++ b/src/timeline/TimelineItem.cc @@ -18,7 +18,6 @@ #include #include #include -#include #include #include "Avatar.h" @@ -426,14 +425,9 @@ TimelineItem::generateBody(const QString &body) { QString content("%1"); - body_ = new QLabel(this); + body_ = new TextLabel(content.arg(replaceEmoji(body)), this); body_->setFont(font_); - body_->setWordWrap(true); - body_->setText(content.arg(replaceEmoji(body))); - body_->setMargin(0); - body_->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextBrowserInteraction); - body_->setOpenExternalLinks(true); } // The username/timestamp is displayed along with the message body. -- cgit 1.5.1