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

Not just on X11

This commit is contained in:
Teo Mrnjavac 2013-01-17 11:48:36 +01:00
parent e7014caecb
commit b0d1e3813b

View File

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