comparison src/MainWindow.cpp @ 178:515bfde8aab7

changed shortcut commands for delete pitch track and switch pitch track
author Firstname Lastname <firstname.lastname@example.net>
date Tue, 18 Feb 2014 22:13:30 -0500
parents e33f9d052503
children ea15fa75ae6f
comparison
equal deleted inserted replaced
177:56a25d2dcb62 178:515bfde8aab7
533 533
534 menu->addSeparator(); 534 menu->addSeparator();
535 535
536 //!!! shortcuts, status tip, key reference etc 536 //!!! shortcuts, status tip, key reference etc
537 action = new QAction(tr("Clear Pitches"), this); 537 action = new QAction(tr("Clear Pitches"), this);
538 action->setShortcut(tr("Backspace")); 538 action->setShortcut(tr("Ctrl+Backspace"));
539 connect(action, SIGNAL(triggered()), this, SLOT(clearPitches())); 539 connect(action, SIGNAL(triggered()), this, SLOT(clearPitches()));
540 connect(this, SIGNAL(canClearSelection(bool)), action, SLOT(setEnabled(bool))); 540 connect(this, SIGNAL(canClearSelection(bool)), action, SLOT(setEnabled(bool)));
541 menu->addAction(action); 541 menu->addAction(action);
542 542
543 //!!! shortcuts, status tip, key reference etc 543 //!!! shortcuts, status tip, key reference etc
553 connect(this, SIGNAL(canClearSelection(bool)), action, SLOT(setEnabled(bool))); 553 connect(this, SIGNAL(canClearSelection(bool)), action, SLOT(setEnabled(bool)));
554 menu->addAction(action); 554 menu->addAction(action);
555 555
556 //!!! shortcuts, status tip, key reference etc 556 //!!! shortcuts, status tip, key reference etc
557 action = new QAction(tr("Switch Pitch Candidate"), this); 557 action = new QAction(tr("Switch Pitch Candidate"), this);
558 action->setShortcut(tr("Return")); 558 action->setShortcut(tr("Ctrl+Return"));
559 connect(action, SIGNAL(triggered()), this, SLOT(switchPitch())); 559 connect(action, SIGNAL(triggered()), this, SLOT(switchPitch()));
560 connect(this, SIGNAL(canClearSelection(bool)), action, SLOT(setEnabled(bool))); 560 connect(this, SIGNAL(canClearSelection(bool)), action, SLOT(setEnabled(bool)));
561 menu->addAction(action); 561 menu->addAction(action);
562 } 562 }
563 563