diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-09-30 13:24:36 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-09-30 13:24:36 +0300 |
commit | 9038c950aef4a59cc9f928541cb20b010be9a8df (patch) | |
tree | 504b717640347d041253a3067248e5311da96da6 /src/dialogs/MemberList.cpp | |
parent | Remove obsolete font/size setting (diff) | |
download | nheko-9038c950aef4a59cc9f928541cb20b010be9a8df.tar.xz |
Remove pixel value from fonts
Diffstat (limited to 'src/dialogs/MemberList.cpp')
-rw-r--r-- | src/dialogs/MemberList.cpp | 6 |
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; |