fix #22588: Changes to Follow Score

This commit is contained in:
lasconic 2013-09-08 11:52:54 +02:00
parent c1e2cb37b2
commit c911d9242f
2 changed files with 11 additions and 8 deletions

View file

@ -1534,7 +1534,7 @@ Shortcut Shortcut::sc[] = {
A_SCORE, A_SCORE,
"pan", "pan",
QT_TRANSLATE_NOOP("action","Pan"), QT_TRANSLATE_NOOP("action","Pan"),
QT_TRANSLATE_NOOP("action","Pan score while playing on/off"), QT_TRANSLATE_NOOP("action","Pan score during playback"),
pan_ICON pan_ICON
), ),
Shortcut( Shortcut(
@ -1847,7 +1847,8 @@ Shortcut Shortcut::sc[] = {
STATE_NORMAL | STATE_NOTE_ENTRY | STATE_PLAY, STATE_NORMAL | STATE_NOTE_ENTRY | STATE_PLAY,
0, 0,
"follow", "follow",
QT_TRANSLATE_NOOP("action","Follow song") QT_TRANSLATE_NOOP("action","Pan roll during playback"),
pan_ICON
), ),
Shortcut( Shortcut(
STATE_NORMAL | STATE_NOTE_ENTRY | STATE_PLAY, STATE_NORMAL | STATE_NOTE_ENTRY | STATE_PLAY,

View file

@ -56,16 +56,18 @@ PianorollEditor::PianorollEditor(QWidget* parent)
#ifdef HAS_MIDI #ifdef HAS_MIDI
tb->addAction(getAction("midi-on")); tb->addAction(getAction("midi-on"));
#endif #endif
QAction* a = getAction("follow");
a->setCheckable(true);
a->setChecked(preferences.followSong);
tb->addAction(a);
tb->addSeparator(); tb->addSeparator();
tb->addAction(getAction("rewind")); tb->addAction(getAction("rewind"));
tb->addAction(getAction("play")); tb->addAction(getAction("play"));
tb->addSeparator(); tb->addSeparator();
QAction* a = getAction("follow");
a->setCheckable(true);
a->setChecked(preferences.followSong);
tb->addAction(a);
tb->addSeparator();
showWave = new QAction(tr("Wave"), tb); showWave = new QAction(tr("Wave"), tb);
showWave->setToolTip(tr("show wave display")); showWave->setToolTip(tr("show wave display"));
showWave->setCheckable(true); showWave->setCheckable(true);