1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

Better icon for spotify, and scale better

This commit is contained in:
Leo Franchi 2011-09-26 16:34:51 -04:00
parent 48a3ad29ff
commit b83e9bbf82
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ JobStatusDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
painter->setRenderHint( QPainter::Antialiasing );
const QRect iconRect( ICON_PADDING, ICON_PADDING + opt.rect.y(), ROW_HEIGHT - 2*ICON_PADDING, ROW_HEIGHT - 2*ICON_PADDING );
QPixmap p = index.data( Qt::DecorationRole ).value< QPixmap >();
p = p.scaled( iconRect.size(), Qt::KeepAspectRatio, Qt::SmoothTransformation );
p = p.scaledToHeight( iconRect.height(), Qt::SmoothTransformation );
painter->drawPixmap( iconRect, p );
// draw right column if there is one

View File

@ -66,7 +66,7 @@ LatchedStatusManager::LatchedStatusManager( QObject* parent )
connect( SourceList::instance(), SIGNAL( sourceLatchedOn( Tomahawk::source_ptr, Tomahawk::source_ptr ) ), this, SLOT( latchedOn( Tomahawk::source_ptr, Tomahawk::source_ptr ) ) );
connect( SourceList::instance(), SIGNAL( sourceLatchedOff( Tomahawk::source_ptr, Tomahawk::source_ptr ) ), this, SLOT( latchedOff( Tomahawk::source_ptr, Tomahawk::source_ptr ) ) );
m_pixmap.load( RESPATH "images/headphones.png" );
m_pixmap.load( RESPATH "images/headphones-bigger.png" );
}
void