summary refs log tree commit diff
path: root/src/dialogs/MemberList.cpp
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-30 13:24:36 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-30 13:24:36 +0300
commit9038c950aef4a59cc9f928541cb20b010be9a8df (patch)
tree504b717640347d041253a3067248e5311da96da6 /src/dialogs/MemberList.cpp
parentRemove obsolete font/size setting (diff)
downloadnheko-9038c950aef4a59cc9f928541cb20b010be9a8df.tar.xz
Remove pixel value from fonts
Diffstat (limited to 'src/dialogs/MemberList.cpp')
-rw-r--r--src/dialogs/MemberList.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dialogs/MemberList.cpp b/src/dialogs/MemberList.cpp
index dae4fc86..f4167143 100644
--- a/src/dialogs/MemberList.cpp
+++ b/src/dialogs/MemberList.cpp
@@ -81,13 +81,13 @@ MemberList::MemberList(const QString &room_id, QWidget *parent)
         list_->setSelectionMode(QAbstractItemView::NoSelection);
         list_->setSpacing(5);
 
-        QFont doubleFont;
-        doubleFont.setPointSizeF(doubleFont.pointSizeF() * 2);
+        QFont largeFont;
+        largeFont.setPointSizeF(largeFont.pointSizeF() * 1.5);
 
         setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
         setMinimumHeight(list_->sizeHint().height() * 2);
         setMinimumWidth(std::max(list_->sizeHint().width() + 4 * conf::modals::WIDGET_MARGIN,
-                                 QFontMetrics(doubleFont).averageCharWidth() * 30 -
+                                 QFontMetrics(largeFont).averageCharWidth() * 30 -
                                    2 * conf::modals::WIDGET_MARGIN));
 
         QFont font;