]> sigrok.org Git - pulseview.git/commitdiff
Added shortcuts to context delete menu items
authorJoel Holdsworth <redacted>
Sun, 13 Oct 2013 23:01:51 +0000 (00:01 +0100)
committerJoel Holdsworth <redacted>
Mon, 14 Oct 2013 12:00:26 +0000 (13:00 +0100)
pv/view/decodesignal.cpp
pv/view/signal.cpp

index 5f6bfffcac63a95a5f3e45518405ddd5b1bf5353..1e9f258297cfdc4202c6da5ff9cdc827323bb522 100644 (file)
@@ -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);
 
index 8ca55900b47c8002861a8bacbafdba403e366a9c..d031b27a55cba190c4674dcfb39eecfbe6829ee7 100644 (file)
@@ -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);