1
0
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:
Christian Muehlhaeuser 2014-08-28 23:28:05 +02:00
parent 916bb80608
commit 0db2ff2250

View File

@ -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 ) );
}
}