mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-10 08:04:25 +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
|
SourceDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const
|
||||||
{
|
{
|
||||||
QStyleOptionViewItem o = option;
|
QStyleOptionViewItem o = option;
|
||||||
QStyleOptionViewItem o2 = option;
|
|
||||||
o2.rect.setX( 0 );
|
|
||||||
o2.state = option.state;
|
|
||||||
|
|
||||||
#ifdef Q_WS_MAC
|
#ifdef Q_WS_MAC
|
||||||
QFont savedFont = painter->font();
|
QFont savedFont = painter->font();
|
||||||
QFont smaller = savedFont;
|
QFont smaller = savedFont;
|
||||||
smaller.setPointSize( smaller.pointSize() - 1 );
|
smaller.setPointSize( smaller.pointSize() - 2 );
|
||||||
painter->setFont( smaller );
|
painter->setFont( smaller );
|
||||||
|
o.font = smaller;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ( ( option.state & QStyle::State_Enabled ) == QStyle::State_Enabled )
|
if ( ( option.state & QStyle::State_Enabled ) == QStyle::State_Enabled )
|
||||||
|
Reference in New Issue
Block a user