From d8a47f7ef6b0aa1142b285f63e6c4b48af0efa0d Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Thu, 17 Jan 2013 12:00:51 +0100 Subject: [PATCH] Don't change scroll steps on OSX. --- src/widgets/AccountListView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/widgets/AccountListView.cpp b/src/widgets/AccountListView.cpp index b3a3e38c1..34a185771 100644 --- a/src/widgets/AccountListView.cpp +++ b/src/widgets/AccountListView.cpp @@ -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 ); }