comparison src/MainWindow.cpp @ 282:118775decf28

privisional "remove pitches" button which results in one-button Backspace working, which will have to go, eventually.
author matthiasm
date Thu, 22 May 2014 18:00:46 +0100
parents 2a18f846dd6c
children 604816843bd4
comparison
equal deleted inserted replaced
281:2a18f846dd6c 282:118775decf28
656 menu->addAction(m_showCandidatesAction); 656 menu->addAction(m_showCandidatesAction);
657 m_rightButtonMenu->addAction(m_showCandidatesAction); 657 m_rightButtonMenu->addAction(m_showCandidatesAction);
658 658
659 659
660 // action = new QAction(tr("Remove Pitches"), this); 660 // action = new QAction(tr("Remove Pitches"), this);
661 action = toolbar->addAction(il.load("navigate"), tr("Navigate")); 661 action = toolbar->addAction(il.load("blank-16"), tr("Remove Pitches"));
662 action->setShortcut(tr("Backspace")); 662 action->setShortcut(tr("Backspace"));
663 action->setStatusTip(tr("Remove all pitch estimates within the selected region, making it unvoiced")); 663 action->setStatusTip(tr("Remove all pitch estimates within the selected region, making it unvoiced"));
664 m_keyReference->registerShortcut(action); 664 m_keyReference->registerShortcut(action);
665 connect(action, SIGNAL(triggered()), this, SLOT(clearPitches())); 665 connect(action, SIGNAL(triggered()), this, SLOT(clearPitches()));
666 connect(this, SIGNAL(canClearSelection(bool)), action, SLOT(setEnabled(bool))); 666 connect(this, SIGNAL(canClearSelection(bool)), action, SLOT(setEnabled(bool)));