mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
* Make sure jump icon fits in the space we're painting.
This commit is contained in:
@@ -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 ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user