From ca016dae43480fb5f60fd601b78e84d626b9b0b5 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Sat, 19 Mar 2011 21:09:57 -0400 Subject: [PATCH] paint the playlist rows smaller too --- src/sourcetree/sourcetreeview.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/sourcetree/sourcetreeview.cpp b/src/sourcetree/sourcetreeview.cpp index c0012a3dc..07267d530 100644 --- a/src/sourcetree/sourcetreeview.cpp +++ b/src/sourcetree/sourcetreeview.cpp @@ -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 )