Mercurial > hg > svgui
diff layer/ImageLayer.cpp @ 587:4806715f7a19
Seems to be a bad idea to use plain DEBUG symbol on OS/X (system wants it)
author | Chris Cannam |
---|---|
date | Tue, 14 Jun 2011 15:27:05 +0100 |
parents | f4960f8ce798 |
children | 1a0dfcbffaf1 |
line wrap: on
line diff
--- a/layer/ImageLayer.cpp Tue Jun 14 14:48:29 2011 +0100 +++ b/layer/ImageLayer.cpp Tue Jun 14 15:27:05 2011 +0100 @@ -127,7 +127,7 @@ { if (!m_model) return ImageModel::PointList(); -// DEBUG << "ImageLayer::getLocalPoints(" << x << "," << y << "):"; +// SVDEBUG << "ImageLayer::getLocalPoints(" << x << "," << y << "):"; const ImageModel::PointList &points(m_model->getPoints()); ImageModel::PointList rv; @@ -155,7 +155,7 @@ int width = 32; if (m_scaled[v].find(p.image) != m_scaled[v].end()) { width = m_scaled[v][p.image].width(); -// DEBUG << "scaled width = " << width << endl; +// SVDEBUG << "scaled width = " << width << endl; } if (x >= px && x < px + width) { @@ -521,7 +521,7 @@ { bool need = false; -// DEBUG << "ImageLayer::getImage(" << v << ", " << name << ", (" +// SVDEBUG << "ImageLayer::getImage(" << v << ", " << name << ", (" // << maxSize.width() << "x" << maxSize.height() << "))" << endl; if (!m_scaled[v][name].isNull() && @@ -558,10 +558,10 @@ void ImageLayer::drawStart(View *v, QMouseEvent *e) { -// DEBUG << "ImageLayer::drawStart(" << e->x() << "," << e->y() << ")" << endl; +// SVDEBUG << "ImageLayer::drawStart(" << e->x() << "," << e->y() << ")" << endl; if (!m_model) { - DEBUG << "ImageLayer::drawStart: no model" << endl; + SVDEBUG << "ImageLayer::drawStart: no model" << endl; return; } @@ -582,7 +582,7 @@ void ImageLayer::drawDrag(View *v, QMouseEvent *e) { -// DEBUG << "ImageLayer::drawDrag(" << e->x() << "," << e->y() << ")" << endl; +// SVDEBUG << "ImageLayer::drawDrag(" << e->x() << "," << e->y() << ")" << endl; if (!m_model || !m_editing) return; @@ -598,7 +598,7 @@ void ImageLayer::drawEnd(View *v, QMouseEvent *) { -// DEBUG << "ImageLayer::drawEnd(" << e->x() << "," << e->y() << ")" << endl; +// SVDEBUG << "ImageLayer::drawEnd(" << e->x() << "," << e->y() << ")" << endl; if (!m_model || !m_editing) return; bool ok = false; @@ -644,7 +644,7 @@ void ImageLayer::editStart(View *v, QMouseEvent *e) { -// DEBUG << "ImageLayer::editStart(" << e->x() << "," << e->y() << ")" << endl; +// SVDEBUG << "ImageLayer::editStart(" << e->x() << "," << e->y() << ")" << endl; if (!m_model) return; @@ -686,7 +686,7 @@ void ImageLayer::editEnd(View *, QMouseEvent *) { -// DEBUG << "ImageLayer::editEnd(" << e->x() << "," << e->y() << ")" << endl; +// SVDEBUG << "ImageLayer::editEnd(" << e->x() << "," << e->y() << ")" << endl; if (!m_model || !m_editing) return; if (m_editingCommand) { @@ -906,7 +906,7 @@ void ImageLayer::checkAddSource(QString img) const { - DEBUG << "ImageLayer::checkAddSource(" << img << "): yes, trying..." << endl; + SVDEBUG << "ImageLayer::checkAddSource(" << img << "): yes, trying..." << endl; if (m_fileSources.find(img) != m_fileSources.end()) { return; @@ -938,7 +938,7 @@ void ImageLayer::fileSourceReady() { -// DEBUG << "ImageLayer::fileSourceReady" << endl; +// SVDEBUG << "ImageLayer::fileSourceReady" << endl; FileSource *rf = dynamic_cast<FileSource *>(sender()); if (!rf) return;