diff 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
line wrap: on
line diff
--- a/widgets/LayerTree.cpp	Thu May 12 17:31:43 2011 +0100
+++ b/widgets/LayerTree.cpp	Mon May 16 17:19:25 2011 +0100
@@ -111,7 +111,7 @@
         m_models.erase(*i);
     }
 
-    std::cerr << "ModelMetadataModel::rebuildModelSet: " << m_models.size() << " models" << std::endl;
+    DEBUG << "ModelMetadataModel::rebuildModelSet: " << m_models.size() << " models" << endl;
 }
 
 void
@@ -371,8 +371,8 @@
     PlayParameters *params = dynamic_cast<PlayParameters *>(sender());
     if (!params) return;
 
-    std::cerr << "LayerTreeModel::playParametersAudibilityChanged("
-              << params << "," << a << ")" << std::endl;
+    DEBUG << "LayerTreeModel::playParametersAudibilityChanged("
+              << params << "," << a << ")" << endl;
 
     for (int i = 0; i < m_stack->getPaneCount(); ++i) {
         Pane *pane = m_stack->getPane(i);
@@ -381,8 +381,8 @@
             Layer *layer = pane->getLayer(j);
             if (!layer) continue;
             if (layer->getPlayParameters() == params) {
-                std::cerr << "LayerTreeModel::playParametersAudibilityChanged("
-                          << params << "," << a << "): row " << pane->getLayerCount() - j - 1 << ", col " << 2 << std::endl;
+                DEBUG << "LayerTreeModel::playParametersAudibilityChanged("
+                          << params << "," << a << "): row " << pane->getLayerCount() - j - 1 << ", col " << 2 << endl;
 
                 emit dataChanged(createIndex(pane->getLayerCount() - j - 1,
                                              m_layerPlayedColumn, pane),