Mercurial > hg > sonic-visualiser
changeset 2079:63da6a82c12d
Make context help explain how to adjust & reset
author | Chris Cannam |
---|---|
date | Tue, 06 Nov 2018 15:43:12 +0000 |
parents | 388d4508bab6 |
children | ebea71799f32 82cac4a6c581 a594146c1ed8 |
files | main/MainWindow.cpp |
diffstat | 1 files changed, 10 insertions(+), 2 deletions(-) [+] |
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)); } }