mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 07:49:42 +01:00
* SmoothPixmapTransform for PlaylistItemDelegate.
This commit is contained in:
parent
8e4da46759
commit
17b084db0b
@ -529,6 +529,8 @@ QRect
|
||||
PlaylistItemDelegate::drawSource( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index, const QRect& rect, PlayableItem* item ) const
|
||||
{
|
||||
painter->save();
|
||||
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 );
|
||||
@ -567,7 +569,7 @@ PlaylistItemDelegate::drawTrack( QPainter* painter, const QStyleOptionViewItem&
|
||||
const track_ptr track = item->query()->track();
|
||||
|
||||
painter->save();
|
||||
painter->setRenderHint( QPainter::TextAntialiasing, true );
|
||||
painter->setRenderHint( QPainter::TextAntialiasing );
|
||||
|
||||
if ( option.state & QStyle::State_Selected )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user