Mercurial > hg > svgui
comparison layer/SpectrogramLayer.cpp @ 334:0a74248af622
...
author | Chris Cannam |
---|---|
date | Thu, 22 Nov 2007 14:27:41 +0000 |
parents | d2d2521a6c7e |
children | 2f83b6e3b8ca |
comparison
equal
deleted
inserted
replaced
333:e74b56f07c73 | 334:0a74248af622 |
---|---|
1665 SpectrogramLayer::paint(View *v, QPainter &paint, QRect rect) const | 1665 SpectrogramLayer::paint(View *v, QPainter &paint, QRect rect) const |
1666 { | 1666 { |
1667 // What a lovely, old-fashioned function this is. | 1667 // What a lovely, old-fashioned function this is. |
1668 // It's practically FORTRAN 77 in its clarity and linearity. | 1668 // It's practically FORTRAN 77 in its clarity and linearity. |
1669 | 1669 |
1670 Profiler profiler("SpectrogramLayer::paint", true); | 1670 Profiler profiler("SpectrogramLayer::paint", false); |
1671 | |
1671 #ifdef DEBUG_SPECTROGRAM_REPAINT | 1672 #ifdef DEBUG_SPECTROGRAM_REPAINT |
1672 std::cerr << "SpectrogramLayer::paint(): m_model is " << m_model << ", zoom level is " << v->getZoomLevel() << ", m_updateTimer " << m_updateTimer << std::endl; | 1673 std::cerr << "SpectrogramLayer::paint(): m_model is " << m_model << ", zoom level is " << v->getZoomLevel() << ", m_updateTimer " << m_updateTimer << std::endl; |
1673 | 1674 |
1674 std::cerr << "rect is " << rect.x() << "," << rect.y() << " " << rect.width() << "x" << rect.height() << std::endl; | 1675 std::cerr << "rect is " << rect.x() << "," << rect.y() << " " << rect.width() << "x" << rect.height() << std::endl; |
1675 #endif | 1676 #endif |