From 29b0b4e431d49f760900a854c79047380519682e Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Sat, 13 Aug 2011 15:15:50 -0400 Subject: [PATCH] Draw whole row background on osx --- src/libtomahawk/playlist/treeitemdelegate.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/libtomahawk/playlist/treeitemdelegate.cpp b/src/libtomahawk/playlist/treeitemdelegate.cpp index f16845a8c..ef63ca0e7 100644 --- a/src/libtomahawk/playlist/treeitemdelegate.cpp +++ b/src/libtomahawk/playlist/treeitemdelegate.cpp @@ -93,7 +93,14 @@ TreeItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, o.state |= QStyle::State_Selected; } +#ifdef Q_OS_MAC + int oldX = o.rect.x(); + o.rect.setX( 0 ); +#endif qApp->style()->drawControl( QStyle::CE_ItemViewItem, &o, painter ); +#ifdef Q_OS_MAC + o.rect.setX( oldX ); +#endif { QRect r = o.rect.adjusted( 3, 0, 0, 0 );