]> git.sesse.net Git - pkanalytics/blobdiff - video_widget.cpp
Make it possible to seek using the 4th and 5th mouse buttons.
[pkanalytics] / video_widget.cpp
index 0a7ff43eb7b2f4f77637e2553b9717e73e3653da..a5b45136537552282d1ec8c118f5cd998de51adb 100644 (file)
@@ -497,7 +497,11 @@ void VideoWidget::wheelEvent(QWheelEvent *event)
 
 void VideoWidget::mousePressEvent(QMouseEvent *e)
 {
-       if (e->button() == Qt::LeftButton) {
+       if (e->button() == Qt::BackButton) {
+               emit mouse_back_clicked();
+       } else if (e->button() == Qt::ForwardButton) {
+               emit mouse_forward_clicked();
+       } else if (e->button() == Qt::LeftButton) {
                dragging = true;
                last_drag_x = e->position().x();
                last_drag_y = e->position().y();