Support Forward and Backward mouse buttons in presentation mode

REVIEW: 130172
This commit is contained in:
Alexander Schlarb 2017-07-08 12:24:36 +02:00 committed by Oliver Sander
parent 5fdbecf446
commit a2b7ce74b2

View file

@ -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();
}