From: Jens Steinhauser Date: Thu, 22 May 2014 20:03:16 +0000 (+0200) Subject: MainWindow: Add shortcuts for the open/save menu items. X-Git-Tag: pulseview-0.3.0~622 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=5117748b6bac221e881347cfd29d5e9164bccd9f;p=pulseview.git MainWindow: Add shortcuts for the open/save menu items. --- diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 0089b112..77e77a19 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -123,6 +123,7 @@ void MainWindow::setup_ui() "MainWindow", "&Open...", 0, QApplication::UnicodeUTF8)); action_open->setIcon(QIcon::fromTheme("document-open", QIcon(":/icons/document-open.png"))); + action_open->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_O)); action_open->setObjectName(QString::fromUtf8("actionOpen")); menu_file->addAction(action_open); @@ -131,6 +132,7 @@ void MainWindow::setup_ui() "MainWindow", "&Save As...", 0, QApplication::UnicodeUTF8)); action_save_as->setIcon(QIcon::fromTheme("document-save-as", QIcon(":/icons/document-save-as.png"))); + action_save_as->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_S)); action_save_as->setObjectName(QString::fromUtf8("actionSaveAs")); menu_file->addAction(action_save_as);