mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +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 )
|
if ( m_jumpLinkVisible )
|
||||||
{
|
{
|
||||||
r.adjust( 6, 0, 0, 0 );
|
r.adjust( 6, 0, 0, 0 );
|
||||||
r.setSize( m_jumpPixmap.size() );
|
r.setWidth( r.height() );
|
||||||
p.drawPixmap( r, m_jumpPixmap );
|
p.drawPixmap( r, m_jumpPixmap.scaled( r.size(), Qt::KeepAspectRatio, Qt::SmoothTransformation ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user