comparison widgets/LayerTree.cpp @ 585:f4960f8ce798 debug-output

Convert many cerrs to DEBUGs
author Chris Cannam
date Mon, 16 May 2011 17:19:25 +0100
parents 1d85aa5a49be
children 4806715f7a19
comparison
equal deleted inserted replaced
584:1fe7951a61e8 585:f4960f8ce798
109 for (std::set<Model *>::iterator i = unfound.begin(); 109 for (std::set<Model *>::iterator i = unfound.begin();
110 i != unfound.end(); ++i) { 110 i != unfound.end(); ++i) {
111 m_models.erase(*i); 111 m_models.erase(*i);
112 } 112 }
113 113
114 std::cerr << "ModelMetadataModel::rebuildModelSet: " << m_models.size() << " models" << std::endl; 114 DEBUG << "ModelMetadataModel::rebuildModelSet: " << m_models.size() << " models" << endl;
115 } 115 }
116 116
117 void 117 void
118 ModelMetadataModel::paneAdded() 118 ModelMetadataModel::paneAdded()
119 { 119 {
369 LayerTreeModel::playParametersAudibilityChanged(bool a) 369 LayerTreeModel::playParametersAudibilityChanged(bool a)
370 { 370 {
371 PlayParameters *params = dynamic_cast<PlayParameters *>(sender()); 371 PlayParameters *params = dynamic_cast<PlayParameters *>(sender());
372 if (!params) return; 372 if (!params) return;
373 373
374 std::cerr << "LayerTreeModel::playParametersAudibilityChanged(" 374 DEBUG << "LayerTreeModel::playParametersAudibilityChanged("
375 << params << "," << a << ")" << std::endl; 375 << params << "," << a << ")" << endl;
376 376
377 for (int i = 0; i < m_stack->getPaneCount(); ++i) { 377 for (int i = 0; i < m_stack->getPaneCount(); ++i) {
378 Pane *pane = m_stack->getPane(i); 378 Pane *pane = m_stack->getPane(i);
379 if (!pane) continue; 379 if (!pane) continue;
380 for (int j = 0; j < pane->getLayerCount(); ++j) { 380 for (int j = 0; j < pane->getLayerCount(); ++j) {
381 Layer *layer = pane->getLayer(j); 381 Layer *layer = pane->getLayer(j);
382 if (!layer) continue; 382 if (!layer) continue;
383 if (layer->getPlayParameters() == params) { 383 if (layer->getPlayParameters() == params) {
384 std::cerr << "LayerTreeModel::playParametersAudibilityChanged(" 384 DEBUG << "LayerTreeModel::playParametersAudibilityChanged("
385 << params << "," << a << "): row " << pane->getLayerCount() - j - 1 << ", col " << 2 << std::endl; 385 << params << "," << a << "): row " << pane->getLayerCount() - j - 1 << ", col " << 2 << endl;
386 386
387 emit dataChanged(createIndex(pane->getLayerCount() - j - 1, 387 emit dataChanged(createIndex(pane->getLayerCount() - j - 1,
388 m_layerPlayedColumn, pane), 388 m_layerPlayedColumn, pane),
389 createIndex(pane->getLayerCount() - j - 1, 389 createIndex(pane->getLayerCount() - j - 1,
390 m_layerPlayedColumn, pane)); 390 m_layerPlayedColumn, pane));