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:
parent
0206d2107a
commit
8463064315
@ -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 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user