{"id":3251,"url":"https://patchwork.libcamera.org/api/1.1/patches/3251/?format=json","web_url":"https://patchwork.libcamera.org/patch/3251/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20200323142205.28342-9-laurent.pinchart@ideasonboard.com>","date":"2020-03-23T14:21:52","name":"[libcamera-devel,08/21] qcam: main_window: Add shortcuts for toolbar actions","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"c477b798e02a7e53d36e6a55e9c8e2f9fbbdcfde","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/1.1/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/3251/mbox/","series":[{"id":760,"url":"https://patchwork.libcamera.org/api/1.1/series/760/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=760","date":"2020-03-23T14:21:44","name":"qcam: Bypass format conversion when not required","version":1,"mbox":"https://patchwork.libcamera.org/series/760/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/3251/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/3251/checks/","tags":{},"headers":{"Return-Path":"<laurent.pinchart@ideasonboard.com>","Received":["from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 2629262C5A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 23 Mar 2020 15:22:21 +0100 (CET)","from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi\n\t[81.175.216.236])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id AA55E308\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 23 Mar 2020 15:22:20 +0100 (CET)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1584973340;\n\tbh=fUPxOR4GjouFYTsBGilSKWyclN8t7TYqptysdhj8FHk=;\n\th=From:To:Subject:Date:In-Reply-To:References:From;\n\tb=u31SKwUMQa28B1EHDaMIcW8/GQunDChnkdVijY+7SSAynvkXLGAP6TWLv8cOnNrL2\n\t3ZY2QVem1dWBkHBcb30owlhB/1AnUhk+3lXqe8WNCU9MknucK4dXifRUteudGG4T5f\n\ty+CbR9S58Ms45ye3j36BQ6KlZrfqPO0MvsTHrhD0=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Mon, 23 Mar 2020 16:21:52 +0200","Message-Id":"<20200323142205.28342-9-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.24.1","In-Reply-To":"<20200323142205.28342-1-laurent.pinchart@ideasonboard.com>","References":"<20200323142205.28342-1-laurent.pinchart@ideasonboard.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 08/21] qcam: main_window: Add shortcuts\n\tfor toolbar actions","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Mon, 23 Mar 2020 14:22:24 -0000"},"content":"Allow triggering toolbar actions with keyboard shortcuts.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n src/qcam/main_window.cpp | 3 +++\n 1 file changed, 3 insertions(+)","diff":"diff --git a/src/qcam/main_window.cpp b/src/qcam/main_window.cpp\nindex 14baf7ec4c2e..18aae07ffce7 100644\n--- a/src/qcam/main_window.cpp\n+++ b/src/qcam/main_window.cpp\n@@ -100,6 +100,7 @@ int MainWindow::createToolbars()\n \taction = toolbar_->addAction(QIcon::fromTheme(\"application-exit\",\n \t\t\t\t\t\t      QIcon(\":x-circle.svg\")),\n \t\t\t\t     \"Quit\");\n+\taction->setShortcut(Qt::CTRL | Qt::Key_Q);\n \tconnect(action, &QAction::triggered, this, &MainWindow::quit);\n \n \t/* Camera selection. */\n@@ -118,12 +119,14 @@ int MainWindow::createToolbars()\n \t\t\t\t\t\t      QIcon(\":play-circle.svg\")),\n \t\t\t\t     \"Start Capture\");\n \taction->setCheckable(true);\n+\taction->setShortcut(Qt::Key_Space);\n \tconnect(action, &QAction::toggled, this, &MainWindow::toggleCapture);\n \tstartStopAction_ = action;\n \n \taction = toolbar_->addAction(QIcon::fromTheme(\"document-save-as\",\n \t\t\t\t\t\t      QIcon(\":save.svg\")),\n \t\t\t\t     \"Save As...\");\n+\taction->setShortcut(Qt::CTRL | Qt::Key_S);\n \tconnect(action, &QAction::triggered, this, &MainWindow::saveImageAs);\n \n \treturn 0;\n","prefixes":["libcamera-devel","08/21"]}