mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 16:44:05 +02:00
Apply scrolling fix for GridViews on OS X, too.
This commit is contained in:
@@ -249,12 +249,10 @@ GridView::resizeEvent( QResizeEvent* event )
|
|||||||
|
|
||||||
void GridView::wheelEvent( QWheelEvent* e )
|
void GridView::wheelEvent( QWheelEvent* e )
|
||||||
{
|
{
|
||||||
#ifndef Q_OS_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( delegate()->itemSize().height() / 8 );
|
verticalScrollBar()->setSingleStep( delegate()->itemSize().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