Mercurial > hg > svgui
diff layer/ImageLayer.cpp @ 706:97ea68f62c1f imaf_enc
Merge from default branch
author | Chris Cannam |
---|---|
date | Thu, 05 Dec 2013 09:47:02 +0000 |
parents | 1a0dfcbffaf1 |
children | 1d526ba11a24 |
line wrap: on
line diff
--- a/layer/ImageLayer.cpp Mon Nov 04 17:12:32 2013 +0000 +++ b/layer/ImageLayer.cpp Thu Dec 05 09:47:02 2013 +0000 @@ -163,7 +163,7 @@ } } -// std::cerr << rv.size() << " point(s)" << std::endl; +// cerr << rv.size() << " point(s)" << endl; return rv; } @@ -500,15 +500,15 @@ bool ImageLayer::getImageOriginalSize(QString name, QSize &size) const { -// std::cerr << "getImageOriginalSize: \"" << name << "\"" << std::endl; +// cerr << "getImageOriginalSize: \"" << name << "\"" << endl; QMutexLocker locker(&m_imageMapMutex); if (m_images.find(name) == m_images.end()) { -// std::cerr << "don't have, trying to open local" << std::endl; +// cerr << "don't have, trying to open local" << endl; m_images[name] = QImage(getLocalFilename(name)); } if (m_images[name].isNull()) { -// std::cerr << "null image" << std::endl; +// cerr << "null image" << endl; return false; } else { size = m_images[name].size(); @@ -529,7 +529,7 @@ m_scaled[v][name].height() <= maxSize.height()) || (m_scaled[v][name].width() <= maxSize.width() && m_scaled[v][name].height() == maxSize.height()))) { -// std::cerr << "cache hit" << std::endl; +// cerr << "cache hit" << endl; return m_scaled[v][name]; } @@ -540,7 +540,7 @@ } if (m_images[name].isNull()) { -// std::cerr << "null image" << std::endl; +// cerr << "null image" << endl; m_scaled[v][name] = QImage(); } else if (m_images[name].width() <= maxSize.width() && m_images[name].height() <= maxSize.height()) { @@ -627,7 +627,7 @@ { QImage image(getLocalFilename(url)); if (image.isNull()) { - std::cerr << "Failed to open image from url \"" << url << "\" (local filename \"" << getLocalFilename(url) << "\"" << std::endl; + cerr << "Failed to open image from url \"" << url << "\" (local filename \"" << getLocalFilename(url) << "\"" << endl; delete m_fileSources[url]; m_fileSources.erase(url); return false; @@ -915,7 +915,7 @@ ProgressDialog dialog(tr("Opening image URL..."), true, 2000); FileSource *rf = new FileSource(img, &dialog); if (rf->isOK()) { - std::cerr << "ok, adding it (local filename = " << rf->getLocalFilename() << ")" << std::endl; + cerr << "ok, adding it (local filename = " << rf->getLocalFilename() << ")" << endl; m_fileSources[img] = rf; connect(rf, SIGNAL(ready()), this, SLOT(fileSourceReady())); } else { @@ -948,7 +948,7 @@ i != m_fileSources.end(); ++i) { if (i->second == rf) { img = i->first; -// std::cerr << "it's image \"" << img << "\"" << std::endl; +// cerr << "it's image \"" << img << "\"" << endl; break; } }