Mercurial > hg > svgui
diff widgets/AudioDial.cpp @ 190:53835534a9d3
* Allow user to activate a pane by clicking on the tab for its currently active
layer. Formerly nothing happened if you clicked on the tab that was already
topmost in a given property stack, because the tab widget only emitted a signal
if the current tab changed. We want this to switch focus back to the pane if
another one has been active in the mean time.
* Make the thumbwheels look a bit round.
author | Chris Cannam |
---|---|
date | Mon, 22 Jan 2007 15:42:00 +0000 |
parents | 5b7472db612b |
children | 6969f21da18a |
line wrap: on
line diff
--- a/widgets/AudioDial.cpp Fri Jan 19 13:13:14 2007 +0000 +++ b/widgets/AudioDial.cpp Mon Jan 22 15:42:00 2007 +0000 @@ -341,12 +341,13 @@ { if (m_rangeMapper) { int newPosition = m_rangeMapper->getPositionForValue(mappedValue); + bool changed = (m_mappedValue != mappedValue); m_mappedValue = mappedValue; m_noMappedUpdate = true; std::cerr << "AudioDial::setMappedValue(" << mappedValue << "): new position is " << newPosition << std::endl; if (newPosition != value()) { setValue(newPosition); - } else { + } else if (changed) { emit valueChanged(newPosition); } m_noMappedUpdate = false;