summary refs log tree commit diff
path: root/src/timeline
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-05-23 16:33:30 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-05-23 16:33:30 +0300
commit3cf7ab9f042e50fc19748e1e09eb5af355f451ca (patch)
tree1a6097d7795272dd6947ac597a4959420c2dd91d /src/timeline
parentUse std::string for the "creator" key in m.room.member (diff)
downloadnheko-3cf7ab9f042e50fc19748e1e09eb5af355f451ca.tar.xz
Fix line break issue on timeline with long words
fixes #193
Diffstat (limited to 'src/timeline')
-rw-r--r--src/timeline/TimelineItem.cc8
1 files changed, 1 insertions, 7 deletions
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 <QContextMenuEvent> #include <QFontDatabase> #include <QMenu> -#include <QTextEdit> #include <QTimer> #include "Avatar.h" @@ -426,14 +425,9 @@ TimelineItem::generateBody(const QString &body) { QString content("<span>%1</span>"); - 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.