mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-10-14 14:31:06 -04:00
Fix default font metrics for forums tree
This commit is contained in:
parent
ef456b2ef7
commit
631b9b5f7a
2 changed files with 9 additions and 0 deletions
|
@ -321,6 +321,10 @@ GxsForumThreadWidget::GxsForumThreadWidget(const RsGxsGroupId &forumId, QWidget
|
|||
|
||||
float f = QFontMetricsF(font()).height()/14.0f ;
|
||||
|
||||
QFontMetricsF fontMetrics(ui->threadTreeWidget->font());
|
||||
int iconHeight = fontMetrics.height() * 1.4;
|
||||
ui->threadTreeWidget->setIconSize(QSize(iconHeight, iconHeight));
|
||||
|
||||
/* Set header resize modes and initial section sizes */
|
||||
|
||||
QHeaderView * ttheader = ui->threadTreeWidget->header () ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue