mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-16 00:53:58 -05:00
Merge pull request #2578 from defnax/forumsfontmetricstreefix
Fix default font metrics for forums tree
This commit is contained in:
commit
c7e8136ab5
3 changed files with 10 additions and 1 deletions
|
|
@ -321,6 +321,10 @@ GxsForumThreadWidget::GxsForumThreadWidget(const RsGxsGroupId &forumId, QWidget
|
||||||
|
|
||||||
float f = QFontMetricsF(font()).height()/14.0f ;
|
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 */
|
/* Set header resize modes and initial section sizes */
|
||||||
|
|
||||||
QHeaderView * ttheader = ui->threadTreeWidget->header () ;
|
QHeaderView * ttheader = ui->threadTreeWidget->header () ;
|
||||||
|
|
|
||||||
|
|
@ -233,6 +233,11 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTreeView" name="threadTreeWidget">
|
<widget class="QTreeView" name="threadTreeWidget">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<pointsize>10</pointsize>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
<property name="contextMenuPolicy">
|
<property name="contextMenuPolicy">
|
||||||
<enum>Qt::CustomContextMenu</enum>
|
<enum>Qt::CustomContextMenu</enum>
|
||||||
</property>
|
</property>
|
||||||
|
|
|
||||||
|
|
@ -311,7 +311,7 @@ BoardPostDisplayWidget_compact QToolButton#voteDownButton:disabled {
|
||||||
|
|
||||||
ForumsDialog, GxsForumThreadWidget
|
ForumsDialog, GxsForumThreadWidget
|
||||||
{
|
{
|
||||||
qproperty-textColorRead: darkgray;
|
qproperty-textColorRead: black;
|
||||||
qproperty-textColorUnread: black;
|
qproperty-textColorUnread: black;
|
||||||
qproperty-textColorUnreadChildren: darkgray;
|
qproperty-textColorUnreadChildren: darkgray;
|
||||||
qproperty-textColorNotSubscribed: black;
|
qproperty-textColorNotSubscribed: black;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue