Mercurial > hg > svgui
diff layer/TimeRulerLayer.cpp @ 585:f4960f8ce798 debug-output
Convert many cerrs to DEBUGs
author | Chris Cannam |
---|---|
date | Mon, 16 May 2011 17:19:25 +0100 |
parents | a6408c382616 |
children | 4806715f7a19 |
line wrap: on
line diff
--- a/layer/TimeRulerLayer.cpp Thu May 12 17:31:43 2011 +0100 +++ b/layer/TimeRulerLayer.cpp Mon May 16 17:19:25 2011 +0100 @@ -72,7 +72,7 @@ resolution = RealTime::realTime2Frame(rtick, rate); int right = left + resolution; -// std::cerr << "TimeRulerLayer::snapToFeatureFrame: type " +// DEBUG << "TimeRulerLayer::snapToFeatureFrame: type " // << int(snap) << ", frame " << frame << " (time " // << rt << ", tick " << rtick << ", rounded " << rdrt << ") "; @@ -135,7 +135,7 @@ } } -// std::cerr << " -> " << frame << " (resolution = " << resolution << ")" << std::endl; +// DEBUG << " -> " << frame << " (resolution = " << resolution << ")" << endl; return true; } @@ -195,8 +195,8 @@ TimeRulerLayer::paint(View *v, QPainter &paint, QRect rect) const { #ifdef DEBUG_TIME_RULER_LAYER - std::cerr << "TimeRulerLayer::paint (" << rect.x() << "," << rect.y() - << ") [" << rect.width() << "x" << rect.height() << "]" << std::endl; + DEBUG << "TimeRulerLayer::paint (" << rect.x() << "," << rect.y() + << ") [" << rect.width() << "x" << rect.height() << "]" << endl; #endif if (!m_model || !m_model->isOK()) return; @@ -252,7 +252,7 @@ int x = v->getXForFrame(frame); #ifdef DEBUG_TIME_RULER_LAYER - std::cerr << "Considering frame = " << frame << ", x = " << x << std::endl; + DEBUG << "Considering frame = " << frame << ", x = " << x << endl; #endif if (x >= rect.x() + rect.width() + 50) {