Mercurial > hg > svgui
comparison view/ViewProxy.h @ 1000:4c8e7014abab tony-2.0-integration
Remove some debug out
author | Chris Cannam |
---|---|
date | Mon, 12 Oct 2015 17:09:51 +0100 |
parents | 477fbf3f10ca |
children | 0be17aafa935 |
comparison
equal
deleted
inserted
replaced
999:477fbf3f10ca | 1000:4c8e7014abab |
---|---|
69 virtual bool getValueExtents(QString unit, double &min, double &max, | 69 virtual bool getValueExtents(QString unit, double &min, double &max, |
70 bool &log) const { | 70 bool &log) const { |
71 return m_view->getValueExtents(unit, min, max, log); | 71 return m_view->getValueExtents(unit, min, max, log); |
72 } | 72 } |
73 virtual int getZoomLevel() const { | 73 virtual int getZoomLevel() const { |
74 //!!! aarg, what if it's already 1? | |
75 int z = m_view->getZoomLevel(); | 74 int z = m_view->getZoomLevel(); |
76 cerr << "getZoomLevel: from " << z << " to "; | 75 // cerr << "getZoomLevel: from " << z << " to "; |
77 z = z / m_scaleFactor; | 76 z = z / m_scaleFactor; |
78 cerr << z << endl; | 77 // cerr << z << endl; |
79 if (z < 1) z = 1; | 78 if (z < 1) z = 1; |
80 return z; | 79 return z; |
81 } | 80 } |
82 virtual QRect getPaintRect() const { | 81 virtual QRect getPaintRect() const { |
83 QRect r = m_view->getPaintRect(); | 82 QRect r = m_view->getPaintRect(); |