comparison widgets/AudioDial.cpp @ 587:4806715f7a19

Seems to be a bad idea to use plain DEBUG symbol on OS/X (system wants it)
author Chris Cannam
date Tue, 14 Jun 2011 15:27:05 +0100
parents f4960f8ce798
children d632a1e87018
comparison
equal deleted inserted replaced
586:1ae54a29e59e 587:4806715f7a19
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 DEBUG << "AudioDial::setMappedValue(" << mappedValue << "): new position is " << newPosition << endl; 368 SVDEBUG << "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 // DEBUG << "AudioDial::mappedValue(): value = " << value() << ", mappedValue = " << m_mappedValue << endl; 393 // SVDEBUG << "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