1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-19 12:21:52 +02:00

Actually draw speaker icon in playlist delegate. I'm assuming this was a typo...

This commit is contained in:
Leo Franchi
2011-08-06 23:59:41 -04:00
parent ce4328c0c3
commit 2c8fac1f8c

View File

@@ -198,7 +198,7 @@ PlaylistItemDelegate::paintShort( QPainter* painter, const QStyleOptionViewItem&
if ( item->isPlaying() ) if ( item->isPlaying() )
{ {
r.adjust( 0, 0, 0, 0 ); r.adjust( 0, 0, 0, 0 );
QRect npr = r.adjusted( 3, r.height() / 2 - m_nowPlayingIcon.height() / 2, 18 - r.width(), -r.height() + m_nowPlayingIcon.height() / 2 ); QRect npr = r.adjusted( 3, r.height() / 2 - m_nowPlayingIcon.height() / 2, 18 - r.width(), -r.height() / 2 + m_nowPlayingIcon.height() / 2 );
painter->drawPixmap( npr, m_nowPlayingIcon ); painter->drawPixmap( npr, m_nowPlayingIcon );
r.adjust( 22, 0, 0, 0 ); r.adjust( 22, 0, 0, 0 );
} }