From b2ebd1adcbc8016eb1b4cc9e979a333208b69851 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sat, 16 Jun 2012 12:20:56 +0200 Subject: [PATCH] * Make sure jump icon fits in the space we're painting. --- src/libtomahawk/widgets/QueryLabel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libtomahawk/widgets/QueryLabel.cpp b/src/libtomahawk/widgets/QueryLabel.cpp index 953005337..a700883d8 100644 --- a/src/libtomahawk/widgets/QueryLabel.cpp +++ b/src/libtomahawk/widgets/QueryLabel.cpp @@ -482,8 +482,8 @@ QueryLabel::paintEvent( QPaintEvent* event ) if ( m_jumpLinkVisible ) { r.adjust( 6, 0, 0, 0 ); - r.setSize( m_jumpPixmap.size() ); - p.drawPixmap( r, m_jumpPixmap ); + r.setWidth( r.height() ); + p.drawPixmap( r, m_jumpPixmap.scaled( r.size(), Qt::KeepAspectRatio, Qt::SmoothTransformation ) ); } }