mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-25 02:45:38 +00:00
Support Forward and Backward mouse buttons in presentation mode
REVIEW: 130172
This commit is contained in:
parent
5fdbecf446
commit
a2b7ce74b2
|
@ -702,8 +702,14 @@ void PresentationWidget::mousePressEvent( QMouseEvent * e )
|
|||
|
||||
m_goToNextPageOnRelease = true;
|
||||
}
|
||||
// pressing right button
|
||||
else if ( e->button() == Qt::RightButton )
|
||||
// pressing the "move forward" mouse button: unlike the left button this
|
||||
// always means "show next page", so we unconditionally delegate to that
|
||||
// action on mouse button press
|
||||
else if ( e->button() == Qt::ForwardButton ) {
|
||||
slotNextPage();
|
||||
}
|
||||
// pressing right or backward button
|
||||
else if ( e->button() == Qt::RightButton || e->button() == Qt::BackButton )
|
||||
slotPrevPage();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue