mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Reduce sidebar font by 1 pt.
This commit is contained in:
@@ -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 );
|
||||||
|
Reference in New Issue
Block a user