From be1478183e551ec411d451b86e83423d8febce7a Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Tue, 2 Oct 2018 13:16:44 +0300 Subject: [PATCH] Remove some unnecessary calls --- src/TypingDisplay.cpp | 3 --- src/timeline/TimelineItem.cpp | 1 - 2 files changed, 4 deletions(-) diff --git a/src/TypingDisplay.cpp b/src/TypingDisplay.cpp index 3cd7b2a2..97d2c713 100644 --- a/src/TypingDisplay.cpp +++ b/src/TypingDisplay.cpp @@ -14,9 +14,6 @@ TypingDisplay::TypingDisplay(QWidget *parent) : OverlayWidget(parent) , offset_{conf::textInput::height} { - QFont f; - setFont(f); - setFixedHeight(QFontMetrics(font()).height() + RECT_PADDING); setAttribute(Qt::WA_TransparentForMouseEvents); } diff --git a/src/timeline/TimelineItem.cpp b/src/timeline/TimelineItem.cpp index ec07d437..74b1278d 100644 --- a/src/timeline/TimelineItem.cpp +++ b/src/timeline/TimelineItem.cpp @@ -600,7 +600,6 @@ void TimelineItem::generateBody(const QString &body) { body_ = new TextLabel(replaceEmoji(body), this); - body_->setFont(font_); body_->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextBrowserInteraction); connect(body_, &TextLabel::userProfileTriggered, this, [](const QString &user_id) {