Mercurial > hg > svgui
comparison widgets/AudioDial.cpp @ 585:f4960f8ce798 debug-output
Convert many cerrs to DEBUGs
author | Chris Cannam |
---|---|
date | Mon, 16 May 2011 17:19:25 +0100 |
parents | 1fe7951a61e8 |
children | 4806715f7a19 |
comparison
equal
deleted
inserted
replaced
584:1fe7951a61e8 | 585:f4960f8ce798 |
---|---|
363 if (m_rangeMapper) { | 363 if (m_rangeMapper) { |
364 int newPosition = m_rangeMapper->getPositionForValue(mappedValue); | 364 int newPosition = m_rangeMapper->getPositionForValue(mappedValue); |
365 bool changed = (m_mappedValue != mappedValue); | 365 bool changed = (m_mappedValue != mappedValue); |
366 m_mappedValue = mappedValue; | 366 m_mappedValue = mappedValue; |
367 m_noMappedUpdate = true; | 367 m_noMappedUpdate = true; |
368 std::cerr << "AudioDial::setMappedValue(" << mappedValue << "): new position is " << newPosition << std::endl; | 368 DEBUG << "AudioDial::setMappedValue(" << mappedValue << "): new position is " << newPosition << endl; |
369 if (newPosition != value()) { | 369 if (newPosition != value()) { |
370 setValue(newPosition); | 370 setValue(newPosition); |
371 } else if (changed) { | 371 } else if (changed) { |
372 emit valueChanged(newPosition); | 372 emit valueChanged(newPosition); |
373 } | 373 } |
388 | 388 |
389 | 389 |
390 float AudioDial::mappedValue() const | 390 float AudioDial::mappedValue() const |
391 { | 391 { |
392 if (m_rangeMapper) { | 392 if (m_rangeMapper) { |
393 // std::cerr << "AudioDial::mappedValue(): value = " << value() << ", mappedValue = " << m_mappedValue << std::endl; | 393 // DEBUG << "AudioDial::mappedValue(): value = " << value() << ", mappedValue = " << m_mappedValue << endl; |
394 return m_mappedValue; | 394 return m_mappedValue; |
395 } | 395 } |
396 return value(); | 396 return value(); |
397 } | 397 } |
398 | 398 |