mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Put text left of pixmaps in SentBox
This commit is contained in:
@@ -425,7 +425,7 @@ PlaylistItemDelegate::drawSentBox( QPainter* painter, const QStyleOptionViewItem
|
|||||||
textDoc.idealWidth(),
|
textDoc.idealWidth(),
|
||||||
0, 0, 0 );
|
0, 0, 0 );
|
||||||
|
|
||||||
QRect textRect = innerRect.adjusted( innerRect.width() - textDoc.idealWidth() - 4, 4, -4, -4 );
|
QRect textRect = innerRect.adjusted( 4, 4, - innerRect.width() + textDoc.idealWidth() + 2*4, -4 );
|
||||||
|
|
||||||
drawRichText( painter, option, textRect, Qt::AlignVCenter|Qt::AlignRight, textDoc );
|
drawRichText( painter, option, textRect, Qt::AlignVCenter|Qt::AlignRight, textDoc );
|
||||||
|
|
||||||
@@ -438,7 +438,7 @@ PlaylistItemDelegate::drawSentBox( QPainter* painter, const QStyleOptionViewItem
|
|||||||
if ( i >= max )
|
if ( i >= max )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
QRect r = innerRect.adjusted( 4, 4, -4, -4 );
|
QRect r = innerRect.adjusted( textDoc.idealWidth() + 3*4, 4, -4, -4 );
|
||||||
r.adjust( width * i, 0, 0, 0 );
|
r.adjust( width * i, 0, 0, 0 );
|
||||||
r.setWidth( width );
|
r.setWidth( width );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user