]> sigrok.org Git - pulseview.git/commitdiff
Implemented Ctrl+Q quit shortcut
authorJoel Holdsworth <redacted>
Mon, 18 Mar 2013 22:59:36 +0000 (22:59 +0000)
committerJoel Holdsworth <redacted>
Thu, 21 Mar 2013 22:44:19 +0000 (22:44 +0000)
pv/mainwindow.cpp

index e2f29e34d133afed3cf765d6d8dd58cfdc6e67a5..3aeb1227edcc1fb00247767002ee3087bb78494a 100644 (file)
@@ -118,6 +118,7 @@ void MainWindow::setup_ui()
                "MainWindow", "&Quit", 0, QApplication::UnicodeUTF8));
        _action_quit->setIcon(QIcon::fromTheme("application-exit",
                QIcon(":/icons/application-exit.png")));
+       _action_quit->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));
        _action_quit->setObjectName(QString::fromUtf8("actionQuit"));
        _menu_file->addAction(_action_quit);