mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-03 11:54:30 -04:00
Fix fonts
This commit is contained in:
parent
e14fc66ca3
commit
18f4ef5574
3 changed files with 22 additions and 0 deletions
|
@ -2617,5 +2617,8 @@ void IdDialog::updateFontSize()
|
||||||
QFontMetricsF fontMetrics(newFont);
|
QFontMetricsF fontMetrics(newFont);
|
||||||
ui->idTreeWidget->setFont(newFont);
|
ui->idTreeWidget->setFont(newFont);
|
||||||
ui->treeWidget_membership->setFont(newFont);
|
ui->treeWidget_membership->setFont(newFont);
|
||||||
|
contactsItem->setFont(RSID_COL_NICKNAME, newFont);
|
||||||
|
allItem->setFont(RSID_COL_NICKNAME, newFont);
|
||||||
|
ownItem->setFont(RSID_COL_NICKNAME, newFont);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include "gui/notifyqt.h"
|
#include "gui/notifyqt.h"
|
||||||
#include "gui/common/RSTreeWidgetItem.h"
|
#include "gui/common/RSTreeWidgetItem.h"
|
||||||
#include "gui/common/StatusDefs.h"
|
#include "gui/common/StatusDefs.h"
|
||||||
|
#include "gui/settings/rsharesettings.h"
|
||||||
#include "util/qtthreadsutils.h"
|
#include "util/qtthreadsutils.h"
|
||||||
#include "gui/common/PeerDefs.h"
|
#include "gui/common/PeerDefs.h"
|
||||||
#include "gui/common/GroupDefs.h"
|
#include "gui/common/GroupDefs.h"
|
||||||
|
@ -223,6 +224,8 @@ void FriendSelectionWidget::showEvent(QShowEvent */*e*/)
|
||||||
{
|
{
|
||||||
if(gxsIds.empty())
|
if(gxsIds.empty())
|
||||||
loadIdentities();
|
loadIdentities();
|
||||||
|
|
||||||
|
updateFontSize();
|
||||||
}
|
}
|
||||||
void FriendSelectionWidget::start()
|
void FriendSelectionWidget::start()
|
||||||
{
|
{
|
||||||
|
@ -1271,3 +1274,18 @@ bool FriendSelectionWidget::isFilterConnected()
|
||||||
{
|
{
|
||||||
return mActionFilterConnected->isChecked();
|
return mActionFilterConnected->isChecked();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void FriendSelectionWidget::updateFontSize()
|
||||||
|
{
|
||||||
|
#if defined(Q_OS_DARWIN)
|
||||||
|
int customFontSize = Settings->valueFromGroup("File", "MinimumFontSize", 13).toInt();
|
||||||
|
#else
|
||||||
|
int customFontSize = Settings->valueFromGroup("File", "MinimumFontSize", 11).toInt();
|
||||||
|
#endif
|
||||||
|
QFont newFont = ui->friendList->font();
|
||||||
|
if (newFont.pointSize() != customFontSize) {
|
||||||
|
newFont.setPointSize(customFontSize);
|
||||||
|
QFontMetricsF fontMetrics(newFont);
|
||||||
|
ui->friendList->setFont(newFont);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -144,6 +144,7 @@ private slots:
|
||||||
void itemChanged(QTreeWidgetItem *item, int column);
|
void itemChanged(QTreeWidgetItem *item, int column);
|
||||||
void selectAll() ;
|
void selectAll() ;
|
||||||
void deselectAll() ;
|
void deselectAll() ;
|
||||||
|
void updateFontSize();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void fillList();
|
void fillList();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue