1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

WebView: Use Qt::Back/ForwardButton instead of XButton1/2

This commit is contained in:
David Rosca 2019-01-26 10:37:32 +01:00
parent ab43af9958
commit 0bb78c8501
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -1078,12 +1078,12 @@ void WebView::_mousePressEvent(QMouseEvent *event)
} }
switch (event->button()) { switch (event->button()) {
case Qt::XButton1: case Qt::BackButton:
back(); back();
event->accept(); event->accept();
break; break;
case Qt::XButton2: case Qt::ForwardButton:
forward(); forward();
event->accept(); event->accept();
break; break;