1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-25 02:09:48 +01:00

Apply scrolling fix for GridViews on OS X, too.

This commit is contained in:
Christian Muehlhaeuser 2015-04-10 03:52:38 +02:00
parent 0206d2107a
commit 8463064315

View File

@ -249,12 +249,10 @@ GridView::resizeEvent( QResizeEvent* event )
void GridView::wheelEvent( QWheelEvent* e )
{
#ifndef Q_OS_MAC
//HACK: Workaround for QTBUG-7232: Smooth scrolling (scroll per pixel) in ItemViews
// does not work as expected.
verticalScrollBar()->setSingleStep( delegate()->itemSize().height() / 8 );
// ^ scroll step is 1/8 of the estimated row height
#endif
QListView::wheelEvent( e );
}