mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-15 13:32:35 +02:00
* Align source headers above tracks in PlaylistItemDelegate.
This commit is contained in:
parent
5b799b4eb7
commit
dedd14c0c0
@ -529,8 +529,8 @@ PlaylistItemDelegate::drawSource( QPainter* painter, const QStyleOptionViewItem&
|
||||
painter->setRenderHint( QPainter::TextAntialiasing );
|
||||
painter->setRenderHint( QPainter::SmoothPixmapTransform );
|
||||
|
||||
QRect avatarRect = rect.adjusted( 12, rect.height() - 48, 0, -16 );
|
||||
QRect textRect = avatarRect.adjusted( avatarRect.height() + 32, 0, -32, 0 );
|
||||
QRect avatarRect = rect.adjusted( 22, rect.height() - 48, 0, -16 );
|
||||
QRect textRect = avatarRect.adjusted( avatarRect.height() + 24, 0, -32, 0 );
|
||||
avatarRect.setWidth( avatarRect.height() );
|
||||
|
||||
QPixmap avatar = item->source()->avatar( TomahawkUtils::RoundedCorners, avatarRect.size(), true ) ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user