summary refs log tree commit diff
path: root/src/UserMentionsWidget.cpp
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2019-07-16 22:50:23 -0400
committerJoseph Donofry <joedonofry@gmail.com>2019-07-16 22:50:23 -0400
commitd2af8271944e67f4dcfb3535452fb8903943fa8e (patch)
treec56d1fae5750b334dadc3baeaa506b5a54ae9478 /src/UserMentionsWidget.cpp
parentAdd User Mentions Dialog (diff)
downloadnheko-d2af8271944e67f4dcfb3535452fb8903943fa8e.tar.xz
Fix linting issues
Diffstat (limited to 'src/UserMentionsWidget.cpp')
-rw-r--r--src/UserMentionsWidget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/UserMentionsWidget.cpp b/src/UserMentionsWidget.cpp

index b7b24ad2..a28db930 100644 --- a/src/UserMentionsWidget.cpp +++ b/src/UserMentionsWidget.cpp
@@ -210,7 +210,7 @@ UserMentionsWidget::paintEvent(QPaintEvent *event) const int msgStampWidth = QFontMetrics(tsFont).horizontalAdvance("timestamp") + 4; #endif // We use the full width of the widget if there is no unread msg bubble. - //const int bottomLineWidthLimit = (unreadMsgCount_ > 0) ? msgStampWidth : 0; + // const int bottomLineWidthLimit = (unreadMsgCount_ > 0) ? msgStampWidth : 0; // Name line. QFontMetrics fontNameMetrics(headingFont); @@ -229,7 +229,8 @@ UserMentionsWidget::paintEvent(QPaintEvent *event) // timestamp. int usernameLimit = std::max(0, width() - 3 * wm.padding - msgStampWidth - wm.iconSize - 20); - auto userName = metrics.elidedText("Show Mentioned Messages", Qt::ElideRight, usernameLimit); + auto userName = + metrics.elidedText("Show Mentioned Messages", Qt::ElideRight, usernameLimit); p.setFont(QFont{}); p.drawText(QPoint(2 * wm.padding + wm.iconSize, bottom_y), userName);