Mercurial > hg > sonic-visualiser
changeset 396:94bb597df464
Merge
author | Chris Cannam |
---|---|
date | Fri, 04 Feb 2011 14:33:16 +0000 |
parents | 065b61fe7cc3 (diff) 53d5e31770b4 (current diff) |
children | bd12bfae2d64 |
files | main/MainWindow.cpp |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/main/MainWindow.cpp Thu Feb 03 14:29:04 2011 +0000 +++ b/main/MainWindow.cpp Fri Feb 04 14:33:16 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"));