]> sigrok.org Git - pulseview.git/commitdiff
MainWindow: Add shortcuts for the open/save menu items.
authorJens Steinhauser <redacted>
Thu, 22 May 2014 20:03:16 +0000 (22:03 +0200)
committerJoel Holdsworth <redacted>
Thu, 22 May 2014 22:07:49 +0000 (23:07 +0100)
pv/mainwindow.cpp

index 0089b112a721f1585a9813134328cfd30c360ccb..77e77a19728f669539c02b22d36486e09bf93031 100644 (file)
@@ -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);