mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
* Fixed track hover rect in sidebar.
This commit is contained in:
@@ -270,8 +270,8 @@ SourceDelegate::paintCollection( QPainter* painter, const QStyleOptionViewItem&
|
||||
painter->setPen( descColor );
|
||||
painter->drawText( textRect, text, to );
|
||||
|
||||
if ( colItem->source() && colItem->source()->currentTrack() )
|
||||
m_trackRects[ index ] = textRect;
|
||||
if ( colItem->source() && colItem->source()->currentTrack() && colItem->source()->state() == DBSyncConnection::SYNCED )
|
||||
m_trackRects[ index ] = textRect.adjusted( 0, 0, -textRect.width() + painter->fontMetrics().width( text ), 0 );
|
||||
else
|
||||
m_trackRects.remove( index );
|
||||
|
||||
|
Reference in New Issue
Block a user