Initialize cursor in PageView scrollbars with ArrowCursor

BUG: 334798
REVIEW: 130131
This commit is contained in:
Tobias Deiminger 2017-05-21 23:36:20 +02:00 committed by Albert Astals Cid
parent bb8c12d1eb
commit 574fad92c8

View file

@ -400,7 +400,9 @@ PageView::PageView( QWidget *parent, Okular::Document *document )
viewport()->setMouseTracking( true );
viewport()->setAutoFillBackground( false );
// the apparently "magic" value of 20 is the same used internally in QScrollArea
verticalScrollBar()->setCursor( Qt::ArrowCursor );
verticalScrollBar()->setSingleStep( 20 );
horizontalScrollBar()->setCursor( Qt::ArrowCursor );
horizontalScrollBar()->setSingleStep( 20 );
// conntect the padding of the viewport to pixmaps requests