# HG changeset patch # User Chris Cannam # Date 1296829987 0 # Node ID 065b61fe7cc3bf9989513e7feb572a823ced1b75 # Parent 5c4943eae1663212e3b08378980ffc46412043ae * Add Paste at Playback Position diff -r 5c4943eae166 -r 065b61fe7cc3 main/MainWindow.cpp --- a/main/MainWindow.cpp Mon Oct 25 11:15:47 2010 +0200 +++ b/main/MainWindow.cpp Fri Feb 04 14:33:07 2011 +0000 @@ -550,6 +550,15 @@ menu->addAction(action); m_rightButtonMenu->addAction(action); + action = new QAction(tr("Paste at Playback Position"), this); + action->setShortcut(tr("Ctrl+Shift+V")); + action->setStatusTip(tr("Paste from the clipboard to the current layer, placing the first item at the playback position")); + connect(action, SIGNAL(triggered()), this, SLOT(pasteAtPlaybackPosition())); + connect(this, SIGNAL(canPaste(bool)), action, SLOT(setEnabled(bool))); + m_keyReference->registerShortcut(action); + menu->addAction(action); + m_rightButtonMenu->addAction(action); + m_deleteSelectedAction = new QAction(tr("&Delete Selected Items"), this); m_deleteSelectedAction->setShortcut(tr("Del")); m_deleteSelectedAction->setStatusTip(tr("Delete items in current selection from the current layer"));