mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 15:16:34 +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->setPen( descColor );
|
||||||
painter->drawText( textRect, text, to );
|
painter->drawText( textRect, text, to );
|
||||||
|
|
||||||
if ( colItem->source() && colItem->source()->currentTrack() )
|
if ( colItem->source() && colItem->source()->currentTrack() && colItem->source()->state() == DBSyncConnection::SYNCED )
|
||||||
m_trackRects[ index ] = textRect;
|
m_trackRects[ index ] = textRect.adjusted( 0, 0, -textRect.width() + painter->fontMetrics().width( text ), 0 );
|
||||||
else
|
else
|
||||||
m_trackRects.remove( index );
|
m_trackRects.remove( index );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user