1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 22:26:32 +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 ); setAttribute( Qt::WA_MacShowFocusRect, 0 );
setContentsMargins( 0, 0, 0, 0 ); setContentsMargins( 0, 0, 0, 0 );
QFont font; QFont fnt;
font.setPointSize( 9 ); fnt.setPointSize( font().pointSize() - 1 );
QFontMetrics fm( font ); QFontMetrics fm( fnt );
// This is sort of the longest string in there. With translations // 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 // we will never get it right so setting it to something reasonable for the average case
setMinimumWidth( fm.width( "Track Album Artist Local Top10") ); setMinimumWidth( fm.width( "Track Album Artist Local Top10") );
setFont( font ); setFont( fnt );
setHeaderHidden( true ); setHeaderHidden( true );
setRootIsDecorated( true ); setRootIsDecorated( true );