From b5b37f5bb56dde0cad8eacbed178fc340001b36c Mon Sep 17 00:00:00 2001 From: Michael Rodenhurst Date: Wed, 8 Aug 2012 20:25:54 +0000 Subject: Shortcut keys for Edit Add and Edit Duplicate. Implement EditDuplicate functionality. --- src/mainwindow.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mainwindow.cc') diff --git a/src/mainwindow.cc b/src/mainwindow.cc index 0a39b0a..4a0f84a 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -70,9 +70,13 @@ void MainWindow::initActions() // Edit -> Add action_add = new QAction(tr("&Add"), this); connect(action_add, SIGNAL(triggered()), this, SLOT(slot_add())); + action_delete = new QAction(tr("&Delete"), this); + action_delete->setShortcuts(QKeySequence::Delete); connect(action_delete, SIGNAL(triggered()), this, SLOT(slot_delete())); + action_duplicate = new QAction(tr("D&uplicate"), this); + action_duplicate->setShortcut(QKeySequence(Qt::Key_Space)); connect(action_duplicate, SIGNAL(triggered()), this, SLOT(slot_duplicate())); } -- cgit v1.2.3