mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Don't change scroll steps on OSX.
This commit is contained in:
@@ -28,9 +28,12 @@ AccountListView::AccountListView( QWidget* parent )
|
|||||||
void
|
void
|
||||||
AccountListView::wheelEvent( QWheelEvent* e )
|
AccountListView::wheelEvent( QWheelEvent* e )
|
||||||
{
|
{
|
||||||
|
#ifndef Q_WS_MAC
|
||||||
//HACK: Workaround for QTBUG-7232: Smooth scrolling (scroll per pixel) in ItemViews
|
//HACK: Workaround for QTBUG-7232: Smooth scrolling (scroll per pixel) in ItemViews
|
||||||
// does not work as expected.
|
// does not work as expected.
|
||||||
verticalScrollBar()->setSingleStep( ACCOUNT_DELEGATE_ROW_HEIGHT_MULTIPLIER * fontMetrics().height() / 8 );
|
verticalScrollBar()->setSingleStep( ACCOUNT_DELEGATE_ROW_HEIGHT_MULTIPLIER * fontMetrics().height() / 8 );
|
||||||
// ^ scroll step is 1/8 of the estimated row height
|
// ^ scroll step is 1/8 of the estimated row height
|
||||||
|
#endif
|
||||||
|
|
||||||
QListView::wheelEvent( e );
|
QListView::wheelEvent( e );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user