From d5913acb2314f819cc4fc7c0b710681fd7fc70cc Mon Sep 17 00:00:00 2001 From: Andrey Bondrov Date: Fri, 9 May 2014 22:08:30 +1100 Subject: [PATCH] Make it possible to toggle play/pause by left click --- src/playerwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/playerwindow.cpp b/src/playerwindow.cpp index 3386957..44e462c 100644 --- a/src/playerwindow.cpp +++ b/src/playerwindow.cpp @@ -909,6 +909,7 @@ void PlayerWindow::setupMyUi() QObject::connect(videoWin, SIGNAL(doubleClicked()), this,SLOT(toggleFullscreen())); + QObject::connect(videoWin, SIGNAL(leftClicked()), this,SLOT(togglePause())); QObject::connect(videoWin, SIGNAL(mouseMoveEventsg(QMouseEvent*)), this,SLOT(mouseMoveEvent(QMouseEvent*))); QObject::connect(videoWin, SIGNAL(rectRubberBand(QRect*)), this,SLOT(rubberBandval(QRect*))); //QObject::connect(videoWin, SIGNAL(resizeVideo(int,int)), this,SLOT(resizeVideo(int,int)));