mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 08:34:34 +02:00
Don't require text to be set for GenericBox
This commit is contained in:
@@ -393,7 +393,7 @@ PlaylistItemDelegate::drawGenericBox( QPainter* painter, const QStyleOptionViewI
|
|||||||
|
|
||||||
drawRichText( painter, option, textRect, Qt::AlignVCenter|Qt::AlignRight, textDoc );
|
drawRichText( painter, option, textRect, Qt::AlignVCenter|Qt::AlignRight, textDoc );
|
||||||
|
|
||||||
if ( !sources.isEmpty() && !textDoc.isEmpty() )
|
if ( !sources.isEmpty() )
|
||||||
drawRectForBox( painter, innerRect );
|
drawRectForBox( painter, innerRect );
|
||||||
|
|
||||||
QRect avatarsRect = innerRect.adjusted( textDoc.idealWidth() + 3*4, 4, -4, -4 );
|
QRect avatarsRect = innerRect.adjusted( textDoc.idealWidth() + 3*4, 4, -4, -4 );
|
||||||
|
Reference in New Issue
Block a user