1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-08 10:02:29 +02:00

* Reduce sidebar font by 1 pt.

This commit is contained in:
Christian Muehlhaeuser 2012-08-05 19:28:27 +02:00
parent e7568fb52c
commit e644930fba

View File

@ -68,13 +68,13 @@ SourceTreeView::SourceTreeView( QWidget* parent )
setAttribute( Qt::WA_MacShowFocusRect, 0 );
setContentsMargins( 0, 0, 0, 0 );
QFont font;
font.setPointSize( 9 );
QFontMetrics fm( font );
QFont fnt;
fnt.setPointSize( font().pointSize() - 1 );
QFontMetrics fm( fnt );
// This is sort of the longest string in there. With translations
// we will never get it right so setting it to something reasonable for the average case
setMinimumWidth( fm.width( "Track Album Artist Local Top10") );
setFont( font );
setFont( fnt );
setHeaderHidden( true );
setRootIsDecorated( true );