From b83e9bbf8257e456de9c3c7af86646942ae3803a Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Mon, 26 Sep 2011 16:34:51 -0400 Subject: [PATCH] Better icon for spotify, and scale better --- src/libtomahawk/jobview/JobStatusDelegate.cpp | 2 +- src/libtomahawk/jobview/LatchedStatusItem.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libtomahawk/jobview/JobStatusDelegate.cpp b/src/libtomahawk/jobview/JobStatusDelegate.cpp index 7adaf59f8..c279687ee 100644 --- a/src/libtomahawk/jobview/JobStatusDelegate.cpp +++ b/src/libtomahawk/jobview/JobStatusDelegate.cpp @@ -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 diff --git a/src/libtomahawk/jobview/LatchedStatusItem.cpp b/src/libtomahawk/jobview/LatchedStatusItem.cpp index c4dee5c19..a8512416b 100644 --- a/src/libtomahawk/jobview/LatchedStatusItem.cpp +++ b/src/libtomahawk/jobview/LatchedStatusItem.cpp @@ -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