1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-09-03 19:02:56 +02:00

only selectively shrink font size on osx

This commit is contained in:
Leo Franchi
2011-03-18 17:12:38 -04:00
parent a7ef75633a
commit 2e3492e68d
4 changed files with 21 additions and 7 deletions

View File

@@ -44,7 +44,13 @@ AudioControls::AudioControls( QWidget* parent )
QFont font( ui->artistTrackLabel->font() );
font.setPixelSize( 12 );
#ifdef Q_WS_MAC
QFont f( font() );
f.setPointSize( f.pointSize() - 2 );
setFont( f );
#endif
ui->artistTrackLabel->setFont( font );
ui->artistTrackLabel->setElideMode( Qt::ElideMiddle );
ui->artistTrackLabel->setType( QueryLabel::ArtistAndTrack );

View File

@@ -69,7 +69,13 @@ TrackView::TrackView( QWidget* parent )
f.setPointSize( f.pointSize() - 1 );
setFont( f );
#endif
#ifdef Q_WS_MAC
QFont f( font() );
f.setPointSize( f.pointSize() - 2 );
setFont( f );
#endif
connect( this, SIGNAL( doubleClicked( QModelIndex ) ), SLOT( onItemActivated( QModelIndex ) ) );
}

View File

@@ -81,7 +81,13 @@ SourceTreeView::SourceTreeView( QWidget* parent )
setUniformRowHeights( false );
setIndentation( 16 );
setAnimated( true );
#ifdef Q_WS_MAC
QFont f( font() );
f.setPointSize( f.pointSize() - 2 );
setFont( f );
#endif
setItemDelegate( new SourceDelegate( this ) );
setContextMenuPolicy( Qt::CustomContextMenu );

View File

@@ -196,10 +196,6 @@ TomahawkApp::TomahawkApp( int& argc, char *argv[] )
Tomahawk::setShortcutHandler( static_cast<MacShortcutHandler*>( m_shortcutHandler) );
Tomahawk::setApplicationHandler( this );
QFont f( QApplication::font() );
f.setPointSize( f.pointSize() - 2 );
QApplication::setFont( f );
#endif
// Connect up shortcuts