Mercurial > hg > tony
changeset 247:852ee50c0de5
Restore "Snap Notes" action (it's still necessary because you can move notes away manually)
author | Chris Cannam |
---|---|
date | Wed, 02 Apr 2014 08:33:27 +0100 |
parents | bb32b9fbacf8 |
children | 271bea0f199b |
files | src/MainWindow.cpp |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/MainWindow.cpp Tue Apr 01 16:23:00 2014 +0100 +++ b/src/MainWindow.cpp Wed Apr 02 08:33:27 2014 +0100 @@ -614,6 +614,7 @@ m_rightButtonMenu->addAction(action); action = new QAction(tr("Merge Notes"), this); + action->setShortcut(tr("Ctrl+=")); action->setStatusTip(tr("Merge all notes within the selected region into a single note")); m_keyReference->registerShortcut(action); connect(action, SIGNAL(triggered()), this, SLOT(mergeNotes())); @@ -628,16 +629,14 @@ connect(this, SIGNAL(canSnapNotes(bool)), action, SLOT(setEnabled(bool))); menu->addAction(action); m_rightButtonMenu->addAction(action); -/* + action = new QAction(tr("Snap Notes to Pitch Track"), this); - action->setShortcut(tr("Ctrl+=")); action->setStatusTip(tr("Set notes within the selected region to the median frequency of their underlying pitches, or remove them if there are no underlying pitches")); m_keyReference->registerShortcut(action); connect(action, SIGNAL(triggered()), this, SLOT(snapNotesToPitches())); connect(this, SIGNAL(canSnapNotes(bool)), action, SLOT(setEnabled(bool))); menu->addAction(action); m_rightButtonMenu->addAction(action); -*/ } void