1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-22 16:59:58 +01:00

Don't change scroll steps on OSX.

This commit is contained in:
Christian Muehlhaeuser 2013-01-17 12:00:51 +01:00
parent b0d1e3813b
commit d8a47f7ef6

View File

@ -28,9 +28,12 @@ AccountListView::AccountListView( QWidget* parent )
void
AccountListView::wheelEvent( QWheelEvent* e )
{
#ifndef Q_WS_MAC
//HACK: Workaround for QTBUG-7232: Smooth scrolling (scroll per pixel) in ItemViews
// does not work as expected.
verticalScrollBar()->setSingleStep( ACCOUNT_DELEGATE_ROW_HEIGHT_MULTIPLIER * fontMetrics().height() / 8 );
// ^ scroll step is 1/8 of the estimated row height
#endif
QListView::wheelEvent( e );
}