mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-19 18:42:36 -05:00
Fix default fonts & font metrics for Shared Files Tree
This commit is contained in:
parent
f03862b984
commit
57cee64966
9 changed files with 125 additions and 1 deletions
|
|
@ -231,6 +231,10 @@ SharedFilesDialog::SharedFilesDialog(bool remote_mode, QWidget *parent)
|
|||
/* Set Multi Selection */
|
||||
ui.dirTreeView->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||
|
||||
QFontMetricsF fontMetrics(ui.dirTreeView->font());
|
||||
int iconHeight = fontMetrics.height() * 1.5;
|
||||
ui.dirTreeView->setIconSize(QSize(iconHeight, iconHeight));
|
||||
|
||||
/* Hide platform specific features */
|
||||
copylinkAct = new QAction(QIcon(IMAGE_COPYLINK), tr( "Copy retroshare Links to Clipboard" ), this );
|
||||
connect( copylinkAct , SIGNAL( triggered() ), this, SLOT( copyLink() ) );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue