1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-25 23:06:23 +02:00

* Fixed spinner repositioning after scrolling.

This commit is contained in:
Christian Muehlhaeuser
2014-08-28 23:27:34 +02:00
parent 848b3254da
commit 916bb80608

View File

@@ -529,7 +529,12 @@ GridItemDelegate::onViewChanged()
{ {
QRect rect = m_view->visualRect( index ); QRect rect = m_view->visualRect( index );
rect.setHeight( rect.width() ); rect.setHeight( rect.width() );
m_spinner.value( index )->move( rect.center() - QPoint( 15, 15 ) );
QWidget* spinner = m_spinner.value( index );
QPoint pos = rect.center() - QPoint( ( spinner->width() ) / 2 - 1,
( spinner->height() ) / 2 - 1 );
spinner->move( pos );
} }
foreach ( const QPersistentModelIndex& index, m_hoverControls.keys() ) foreach ( const QPersistentModelIndex& index, m_hoverControls.keys() )
{ {