]> sigrok.org Git - pulseview.git/commitdiff
Added an accelerator for show/hide cursors
authorJoel Holdsworth <redacted>
Tue, 23 Apr 2013 22:22:46 +0000 (23:22 +0100)
committerJoel Holdsworth <redacted>
Tue, 23 Apr 2013 22:22:46 +0000 (23:22 +0100)
pv/mainwindow.cpp

index 3326b9b1af47967d0de0603a4bef3cdb4d4684f1..150c2fccfa348d9ba9aac48f73016abe2b4c5d96 100644 (file)
@@ -152,6 +152,7 @@ void MainWindow::setup_ui()
        _action_view_show_cursors = new QAction(this);
        _action_view_show_cursors->setCheckable(true);
        _action_view_show_cursors->setChecked(_view->cursors_shown());
+       _action_view_show_cursors->setShortcut(QKeySequence(Qt::Key_C));
        _action_view_show_cursors->setObjectName(
                QString::fromUtf8("actionViewShowCursors"));
        _action_view_show_cursors->setText(QApplication::translate(