mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-01-18 23:17:59 +01:00
* Slight optimization.
This commit is contained in:
parent
916bb80608
commit
0db2ff2250
@ -540,7 +540,9 @@ GridItemDelegate::onViewChanged()
|
||||
{
|
||||
QRect rect = m_view->visualRect( index );
|
||||
rect.setHeight( rect.width() );
|
||||
m_hoverControls.value( index )->move( rect.center() - QPoint( m_hoverControls[ index ]->width() / 2 -1, m_hoverControls[ index ]->height() / 2 -1 ) );
|
||||
|
||||
HoverControls* controls = m_hoverControls.value( index );
|
||||
controls->move( rect.center() - QPoint( controls->width() / 2 -1, controls->height() / 2 -1 ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user