From 161e2878779e3cc8aec59ede1862b19eaf73c70a Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Fri, 26 Apr 2013 06:56:49 +0200 Subject: [PATCH] Make blue dots in inbox smaller. --- src/libtomahawk/playlist/PlaylistLargeItemDelegate.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/playlist/PlaylistLargeItemDelegate.cpp b/src/libtomahawk/playlist/PlaylistLargeItemDelegate.cpp index 9dd1d5b71..709fa7eb5 100644 --- a/src/libtomahawk/playlist/PlaylistLargeItemDelegate.cpp +++ b/src/libtomahawk/playlist/PlaylistLargeItemDelegate.cpp @@ -170,10 +170,16 @@ PlaylistLargeItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& const int pixHeight = r.height() - pixMargin * 2; QRect npr = r.adjusted( pixMargin, pixMargin + 1, pixHeight - r.width() + pixMargin, -pixMargin + 1 ); if ( item->isPlaying() ) + { painter->drawPixmap( npr, TomahawkUtils::defaultPixmap( TomahawkUtils::NowPlayingSpeaker, TomahawkUtils::Original, npr.size() ) ); + r.adjust( pixHeight + 8, 0, 0, 0 ); + } else + { + npr = npr.adjusted( 0, npr.height() / 4, -npr.width() / 2, -npr.height() / 4 ); painter->drawPixmap( npr, TomahawkUtils::defaultPixmap( TomahawkUtils::InboxNewItem, TomahawkUtils::Original, npr.size() ) ); - r.adjust( pixHeight + 8, 0, 0, 0 ); + r.adjust( npr.width() + 8, 0, 0, 0 ); + } } painter->setPen( opt.palette.text().color() );