Mercurial > hg > sonic-visualiser
diff main/MainWindow.cpp @ 2079:63da6a82c12d
Make context help explain how to adjust & reset
author | Chris Cannam |
---|---|
date | Tue, 06 Nov 2018 15:43:12 +0000 |
parents | 513d77e93090 |
children | 6e3ef3aa341e |
line wrap: on
line diff
--- a/main/MainWindow.cpp Tue Nov 06 11:19:32 2018 +0000 +++ b/main/MainWindow.cpp Tue Nov 06 15:43:12 2018 +0000 @@ -4976,10 +4976,18 @@ QWidget *w = dynamic_cast<QWidget *>(sender()); if (!w) return; + QString mainText, editText; + if (w == m_mainLevelPan) { - contextHelpChanged(tr("Adjust the master playback level and pan")); + mainText = tr("Adjust the master playback level and pan"); + editText = tr("click then drag to adjust, ctrl+click to reset"); } else if (w == m_playSpeed) { - contextHelpChanged(tr("Adjust the master playback speed")); + mainText = tr("Adjust the master playback speed"); + editText = tr("drag up/down to adjust, ctrl+click to reset"); + } + + if (mainText != "") { + contextHelpChanged(tr("%1: %2").arg(mainText).arg(editText)); } }