comparison widgets/PluginParameterBox.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
256 qtz = (max - min) / 100.0; 256 qtz = (max - min) / 100.0;
257 } 257 }
258 newValue = min + ival * qtz; 258 newValue = min + ival * qtz;
259 } 259 }
260 260
261 // std::cerr << "PluginParameterBox::dialChanged: newValue = " << newValue << std::endl; 261 // DEBUG << "PluginParameterBox::dialChanged: newValue = " << newValue << endl;
262 262
263 QDoubleSpinBox *spin = m_params[identifier].spin; 263 QDoubleSpinBox *spin = m_params[identifier].spin;
264 if (spin) { 264 if (spin) {
265 spin->blockSignals(true); 265 spin->blockSignals(true);
266 spin->setValue(newValue); 266 spin->setValue(newValue);
267 spin->blockSignals(false); 267 spin->blockSignals(false);
268 } 268 }
269 269
270 // std::cerr << "setting plugin parameter \"" << identifier << "\" to value " << newValue << std::endl; 270 // DEBUG << "setting plugin parameter \"" << identifier << "\" to value " << newValue << endl;
271 271
272 m_plugin->setParameter(identifier.toStdString(), newValue); 272 m_plugin->setParameter(identifier.toStdString(), newValue);
273 273
274 updateProgramCombo(); 274 updateProgramCombo();
275 275
350 dial->setValue(ival); 350 dial->setValue(ival);
351 } 351 }
352 dial->blockSignals(false); 352 dial->blockSignals(false);
353 } 353 }
354 354
355 std::cerr << "setting plugin parameter \"" << identifier << "\" to value " << value << std::endl; 355 DEBUG << "setting plugin parameter \"" << identifier << "\" to value " << value << endl;
356 356
357 m_plugin->setParameter(identifier.toStdString(), value); 357 m_plugin->setParameter(identifier.toStdString(), value);
358 358
359 updateProgramCombo(); 359 updateProgramCombo();
360 360