qv4l2: add Q shortcut to close the video window
authorHans Verkuil <hans.verkuil@cisco.com>
Sat, 19 Jul 2014 22:08:51 +0000 (00:08 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Sat, 19 Jul 2014 22:08:51 +0000 (00:08 +0200)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
utils/qv4l2/capture-win.cpp

index 525a2eb..7762e6a 100644 (file)
@@ -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()));