summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/qcam/main_window.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qcam/main_window.cpp b/src/qcam/main_window.cpp
index 9f008a57..6afb7714 100644
--- a/src/qcam/main_window.cpp
+++ b/src/qcam/main_window.cpp
@@ -99,6 +99,7 @@ int MainWindow::createToolbars()
action = toolbar_->addAction(QIcon::fromTheme("application-exit",
QIcon(":x-circle.svg")),
"Quit");
+ action->setShortcut(Qt::CTRL | Qt::Key_Q);
connect(action, &QAction::triggered, this, &MainWindow::quit);
/* Camera selection. */
@@ -120,12 +121,14 @@ int MainWindow::createToolbars()
action = toolbar_->addAction(iconPlay_, "Start Capture");
action->setCheckable(true);
+ action->setShortcut(Qt::Key_Space);
connect(action, &QAction::toggled, this, &MainWindow::toggleCapture);
startStopAction_ = action;
action = toolbar_->addAction(QIcon::fromTheme("document-save-as",
QIcon(":save.svg")),
"Save As...");
+ action->setShortcut(QKeySequence::SaveAs);
connect(action, &QAction::triggered, this, &MainWindow::saveImageAs);
return 0;