projects
/
mussa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cb8b9c7
)
ImageSaveDialog cout removal
author
Brandon King
<kingb@caltech.edu>
Thu, 2 Mar 2006 02:21:28 +0000
(
02:21
+0000)
committer
Brandon King
<kingb@caltech.edu>
Thu, 2 Mar 2006 02:21:28 +0000
(
02:21
+0000)
qui/ImageSaveDialog.cxx
patch
|
blob
|
history
diff --git
a/qui/ImageSaveDialog.cxx
b/qui/ImageSaveDialog.cxx
index c7e4d507bc0ac96f9e36b2af19dcaacbf4173656..b9ab1d4ded985cf4d3b0a7a643374505d659fc2e 100644
(file)
--- a/
qui/ImageSaveDialog.cxx
+++ b/
qui/ImageSaveDialog.cxx
@@
-120,21
+120,16
@@
QSize ImageSaveDialog::getOpenGlPixmapSize()
QPixmap ImageSaveDialog::renderOpenGlPixmap()
{
QPixmap ImageSaveDialog::renderOpenGlPixmap()
{
- std::cout << "glwidget: " << glwidget << "\n";
if (!glwidget)
return QPixmap();
if (!glwidget)
return QPixmap();
- std::cout << "pre get size\n";
+
QSize size = getOpenGlPixmapSize();
QSize size = getOpenGlPixmapSize();
- std::cout << "post get size\n";
if (size.isValid())
{
if (size.isValid())
{
- std::cout << "pre get pixmap\n";
QPixmap pixmap = glwidget->renderPixmap(size.width(), size.height());
QPixmap pixmap = glwidget->renderPixmap(size.width(), size.height());
- std::cout << "post get pixmap\n";
return pixmap;
}
return pixmap;
}
- std::cout << "return empty\n";
return QPixmap();
}
return QPixmap();
}
@@
-143,16
+138,12
@@
void ImageSaveDialog::savePixmap()
QString filePath;
filePath = filePathLabel->text();
QString filePath;
filePath = filePathLabel->text();
- std::cout << "File Path: " << filePath.toStdString() << "\n";
-
if (filePath.isEmpty())
//FIXME: Include prompt telling user of failure
return;
QPixmap pixmap;
if (filePath.isEmpty())
//FIXME: Include prompt telling user of failure
return;
QPixmap pixmap;
- std::cout << "Before render pixmap!\n";
pixmap = renderOpenGlPixmap();
pixmap = renderOpenGlPixmap();
- std::cout << "After render pixmap!\n";
//Save pixelmap to file!
if (filePath.endsWith(".png"))
//Save pixelmap to file!
if (filePath.endsWith(".png"))