Mercurial > hg > tony
comparison src/MainWindow.cpp @ 180:30045b51279b
merge
author | matthiasm |
---|---|
date | Wed, 19 Feb 2014 09:02:01 +0000 |
parents | 515bfde8aab7 |
children | ea15fa75ae6f |
comparison
equal
deleted
inserted
replaced
179:2eb71b65e4ef | 180:30045b51279b |
---|---|
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 |