summary refs log tree commit diff
path: root/src/TypingDisplay.cpp
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2019-07-04 21:31:28 -0400
committerJoseph Donofry <joedonofry@gmail.com>2019-07-04 21:31:28 -0400
commit2484e0c11874cac06a18ab64e9e02e375d93a6dd (patch)
tree3abcafa6b08be16147751870042cf23e30978930 /src/TypingDisplay.cpp
parentFix deprecated function call issues with Qt 5.13 (diff)
downloadnheko-2484e0c11874cac06a18ab64e9e02e375d93a6dd.tar.xz
Fix formatting issues
Diffstat (limited to 'src/TypingDisplay.cpp')
-rw-r--r--src/TypingDisplay.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/TypingDisplay.cpp b/src/TypingDisplay.cpp

index 97aeb268..fc5e2df4 100644 --- a/src/TypingDisplay.cpp +++ b/src/TypingDisplay.cpp
@@ -69,7 +69,8 @@ TypingDisplay::paintEvent(QPaintEvent *) text_ = fm.elidedText(text_, Qt::ElideRight, (double)(width() * 0.75)); QPainterPath path; - path.addRoundedRect(QRectF(0, 0, fm.horizontalAdvance(text_) + 2 * LEFT_PADDING, height()), 3, 3); + path.addRoundedRect( + QRectF(0, 0, fm.horizontalAdvance(text_) + 2 * LEFT_PADDING, height()), 3, 3); p.fillPath(path, backgroundColor()); p.drawText(region, Qt::AlignVCenter, text_);