Skip to content
This repository has been archived by the owner on Oct 17, 2019. It is now read-only.

Commit

Permalink
Remove some unnecessary calls
Browse files Browse the repository at this point in the history
  • Loading branch information
mujx committed Oct 2, 2018
1 parent 3a57d10 commit be14781
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/TypingDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
1 change: 0 additions & 1 deletion src/timeline/TimelineItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit be14781

Please sign in to comment.