Mercurial > hg > svgui
comparison widgets/PluginParameterBox.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 | 1a0dfcbffaf1 |
comparison
equal
deleted
inserted
replaced
586:1ae54a29e59e | 587:4806715f7a19 |
---|---|
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 // DEBUG << "PluginParameterBox::dialChanged: newValue = " << newValue << endl; | 261 // SVDEBUG << "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 // DEBUG << "setting plugin parameter \"" << identifier << "\" to value " << newValue << endl; | 270 // SVDEBUG << "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 DEBUG << "setting plugin parameter \"" << identifier << "\" to value " << value << endl; | 355 SVDEBUG << "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 |