1
0
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:
Leo Franchi
2011-03-19 21:09:57 -04:00
parent 64331d7fa5
commit ca016dae43

View File

@@ -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 )