mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Added to fix font metrics for messages tree
This commit is contained in:
parent
cb50bed0fc
commit
dadf59ac04
@ -228,6 +228,9 @@ MessagesDialog::MessagesDialog(QWidget *parent)
|
||||
/* Set header sizes for the fixed columns and resize modes, must be set after processSettings */
|
||||
msgwheader->setStretchLastSection(true);
|
||||
|
||||
QFontMetricsF fontMetrics(ui.messageTreeWidget->font());
|
||||
int iconHeight = fontMetrics.height() * 1.4;
|
||||
ui.messageTreeWidget->setIconSize(QSize(iconHeight, iconHeight));
|
||||
|
||||
// fill folder list
|
||||
updateMessageSummaryList();
|
||||
|
@ -375,6 +375,11 @@
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<widget class="RSTreeView" name="messageTreeWidget">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="contextMenuPolicy">
|
||||
<enum>Qt::CustomContextMenu</enum>
|
||||
</property>
|
||||
|
Loading…
Reference in New Issue
Block a user