From: Joel Holdsworth Date: Sun, 13 Oct 2013 23:01:51 +0000 (+0100) Subject: Added shortcuts to context delete menu items X-Git-Tag: pulseview-0.2.0~246 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a2d210184772cd8d265ba1620de33763f1a00645;p=pulseview.git Added shortcuts to context delete menu items --- diff --git a/pv/view/decodesignal.cpp b/pv/view/decodesignal.cpp index 5f6bfffc..1e9f2582 100644 --- a/pv/view/decodesignal.cpp +++ b/pv/view/decodesignal.cpp @@ -111,6 +111,7 @@ QMenu* DecodeSignal::create_context_menu(QWidget *parent) menu->addSeparator(); QAction *const del = new QAction(tr("Delete"), this); + del->setShortcuts(QKeySequence::Delete); connect(del, SIGNAL(triggered()), this, SLOT(on_delete())); menu->addAction(del); diff --git a/pv/view/signal.cpp b/pv/view/signal.cpp index 8ca55900..d031b27a 100644 --- a/pv/view/signal.cpp +++ b/pv/view/signal.cpp @@ -105,6 +105,7 @@ QMenu* Signal::create_context_menu(QWidget *parent) menu->addSeparator(); QAction *const disable = new QAction(tr("Disable"), this); + disable->setShortcuts(QKeySequence::Delete); connect(disable, SIGNAL(triggered()), this, SLOT(on_disable())); menu->addAction(disable);