From 6f5e636b3b02a3b180a320ba2f6fe3fd0757244f Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Sun, 20 Jul 2014 00:08:51 +0200 Subject: [PATCH] qv4l2: add Q shortcut to close the video window Signed-off-by: Hans Verkuil --- utils/qv4l2/capture-win.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/qv4l2/capture-win.cpp b/utils/qv4l2/capture-win.cpp index 525a2eb..7762e6a 100644 --- a/utils/qv4l2/capture-win.cpp +++ b/utils/qv4l2/capture-win.cpp @@ -39,6 +39,7 @@ CaptureWin::CaptureWin(ApplicationWindow *aw) : setWindowTitle("V4L2 Capture"); m_hotkeyClose = new QShortcut(Qt::CTRL+Qt::Key_W, this); connect(m_hotkeyClose, SIGNAL(activated()), this, SLOT(close())); + connect(new QShortcut(Qt::Key_Q, this), SIGNAL(activated()), this, SLOT(close())); m_hotkeyScaleReset = new QShortcut(Qt::CTRL+Qt::Key_F, this); connect(m_hotkeyScaleReset, SIGNAL(activated()), this, SLOT(resetSize())); connect(aw->m_resetScalingAct, SIGNAL(triggered()), this, SLOT(resetSize())); -- 2.7.4