Mercurial > hg > svcore
diff base/View.cpp @ 18:4563a72c1d8b
* Add Zero Crossings output from zc plugin (as well as Zero Crossings Count)
* Use brief friendly names for layers instead of full transform descriptions
* Clearer command names for editing commands
* Some efficiencies in drawing dense points in TimeInstantLayer
author | Chris Cannam |
---|---|
date | Tue, 31 Jan 2006 17:19:45 +0000 |
parents | cc98d496d52b |
children | a7ed14263fe4 |
line wrap: on
line diff
--- a/base/View.cpp Tue Jan 31 15:57:25 2006 +0000 +++ b/base/View.cpp Tue Jan 31 17:19:45 2006 +0000 @@ -23,7 +23,7 @@ #include <iostream> #include <cassert> -#define DEBUG_VIEW_WIDGET_PAINT 1 +//#define DEBUG_VIEW_WIDGET_PAINT 1 using std::cerr; using std::endl; @@ -512,9 +512,6 @@ if (m_playPointerFrame == f) return; bool visible = (getXForFrame(m_playPointerFrame) != getXForFrame(f)); - std::cerr << "old x = " << getXForFrame(m_playPointerFrame) - << ", new x = " << getXForFrame(f) - << ", visible = " << visible << std::endl; size_t oldPlayPointerFrame = m_playPointerFrame; m_playPointerFrame = f; if (!visible) return; @@ -559,6 +556,10 @@ int xnew = getXForFrame(m_playPointerFrame); +#ifdef DEBUG_VIEW_WIDGET_PAINT + std::cerr << "xnew = " << xnew << ", width = " << width() << std::endl; +#endif + if (xnew < width()/8 || xnew > (width()*7)/8) { if (QApplication::mouseButtons() == Qt::NoButton && QApplication::keyboardModifiers() == Qt::NoModifier) {