Please welcome the long-waited ChoqoK 1.7.0 release! Also, incorporate latest patches from KDE/choqok git repository to resolve build errors and work with twitter conversations
12 lines
518 B
C++
12 lines
518 B
C++
--- libchoqok/ui/microblogwidget.cpp.orig 2020-02-05 11:49:13 UTC
|
|
+++ libchoqok/ui/microblogwidget.cpp
|
|
@@ -65,7 +65,7 @@ QIcon addNumToIcon(const QIcon &big , int number , con
|
|
painter.setFont(font);
|
|
|
|
QString numberStr = QString::number(number);
|
|
- int textWidth = painter.fontMetrics().width(numberStr) + 6;
|
|
+ int textWidth = painter.fontMetrics().horizontalAdvance(numberStr) + 6;
|
|
|
|
if (textWidth < result_size.width() / 2) {
|
|
textWidth = result_size.width() / 2;
|