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:
@@ -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 );
|
||||
|
@@ -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 ) ) );
|
||||
}
|
||||
|
||||
|
@@ -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 );
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user