mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-22 16:59:58 +01:00
* Fixed track hover rect in sidebar.
This commit is contained in:
parent
73977f58d3
commit
e6b3884003
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user