# HG changeset patch # User Chris Cannam # Date 1173099674 0 # Node ID 1fff998ae4a9a23a5fdc28b47907023734270b21 # Parent 21a5e4e7cb92ae58e36b73ffc1b0829cdbbbdff0 * Fix failure to update mapped value when setValue is called diff -r 21a5e4e7cb92 -r 1fff998ae4a9 widgets/AudioDial.cpp --- a/widgets/AudioDial.cpp Mon Mar 05 12:00:32 2007 +0000 +++ b/widgets/AudioDial.cpp Mon Mar 05 13:01:14 2007 +0000 @@ -337,6 +337,13 @@ } +void AudioDial::setValue(int value) +{ + QDial::setValue(value); + updateMappedValue(value); +} + + void AudioDial::setMappedValue(float mappedValue) { if (m_rangeMapper) { diff -r 21a5e4e7cb92 -r 1fff998ae4a9 widgets/AudioDial.h --- a/widgets/AudioDial.h Mon Mar 05 12:00:32 2007 +0000 +++ b/widgets/AudioDial.h Mon Mar 05 13:01:14 2007 +0000 @@ -103,6 +103,8 @@ void setDefaultValue(int defaultValue); + void setValue(int value); + void setMappedValue(float mappedValue); protected: