mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 23:26:40 +02:00
paint the playlist rows smaller too
This commit is contained in:
@@ -497,15 +497,13 @@ void
|
||||
SourceDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const
|
||||
{
|
||||
QStyleOptionViewItem o = option;
|
||||
QStyleOptionViewItem o2 = option;
|
||||
o2.rect.setX( 0 );
|
||||
o2.state = option.state;
|
||||
|
||||
#ifdef Q_WS_MAC
|
||||
QFont savedFont = painter->font();
|
||||
QFont smaller = savedFont;
|
||||
smaller.setPointSize( smaller.pointSize() - 1 );
|
||||
smaller.setPointSize( smaller.pointSize() - 2 );
|
||||
painter->setFont( smaller );
|
||||
o.font = smaller;
|
||||
#endif
|
||||
|
||||
if ( ( option.state & QStyle::State_Enabled ) == QStyle::State_Enabled )
|
||||
|
Reference in New Issue
Block a user