Remove some unnecessary calls

This commit is contained in:
Konstantinos Sideris 2018-10-02 13:16:44 +03:00
parent 3a57d1018e
commit be1478183e
2 changed files with 0 additions and 4 deletions

View file

@ -14,9 +14,6 @@ TypingDisplay::TypingDisplay(QWidget *parent)
: OverlayWidget(parent) : OverlayWidget(parent)
, offset_{conf::textInput::height} , offset_{conf::textInput::height}
{ {
QFont f;
setFont(f);
setFixedHeight(QFontMetrics(font()).height() + RECT_PADDING); setFixedHeight(QFontMetrics(font()).height() + RECT_PADDING);
setAttribute(Qt::WA_TransparentForMouseEvents); setAttribute(Qt::WA_TransparentForMouseEvents);
} }

View file

@ -600,7 +600,6 @@ void
TimelineItem::generateBody(const QString &body) TimelineItem::generateBody(const QString &body)
{ {
body_ = new TextLabel(replaceEmoji(body), this); body_ = new TextLabel(replaceEmoji(body), this);
body_->setFont(font_);
body_->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextBrowserInteraction); body_->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextBrowserInteraction);
connect(body_, &TextLabel::userProfileTriggered, this, [](const QString &user_id) { connect(body_, &TextLabel::userProfileTriggered, this, [](const QString &user_id) {