summaryrefslogtreecommitdiff
path: root/core/applets/screenshotapplet/screenshot.cpp
Side-by-side diff
Diffstat (limited to 'core/applets/screenshotapplet/screenshot.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/applets/screenshotapplet/screenshot.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/core/applets/screenshotapplet/screenshot.cpp b/core/applets/screenshotapplet/screenshot.cpp
index 9aa012a..938ea0c 100644
--- a/core/applets/screenshotapplet/screenshot.cpp
+++ b/core/applets/screenshotapplet/screenshot.cpp
@@ -17,7 +17,10 @@
/* OPIE */
+#include <opie2/odebug.h>
#include <opie2/otaskbarapplet.h>
#include <qpe/qpeapplication.h>
#include <qpe/applnk.h>
+using namespace Opie::Core;
+using namespace Opie::Ui;
/* QT */
@@ -40,5 +43,4 @@
/* XPM */
-using namespace Opie::Ui;
static char * snapshot_xpm[] = {
"32 32 177 2",
@@ -363,5 +365,5 @@ void ScreenshotControl::savePixmap()
fileName = fileName + ".png";
lnk.setFile(fileName); //sets File property
- qDebug("saving file " + fileName);
+ odebug << "saving file " + fileName << oendl;
snapshot.save( fileName, "PNG");
QFileInfo fi( fileName);
@@ -369,5 +371,5 @@ void ScreenshotControl::savePixmap()
if (!lnk.writeLink())
- qDebug("Writing doclink did not work");
+ odebug << "Writing doclink did not work" << oendl;
}
else {
@@ -381,5 +383,5 @@ void ScreenshotControl::savePixmap()
if ( !QDir( dirName).exists() ) {
- qDebug("making dir " + dirName);
+ odebug << "making dir " + dirName << oendl;
QString msg = "mkdir -p " + dirName;
system(msg.latin1());
@@ -389,5 +391,5 @@ void ScreenshotControl::savePixmap()
fileName = fileName + ".png";
lnk.setFile(fileName); //sets File property
- qDebug("saving file " + fileName);
+ odebug << "saving file " + fileName << oendl;
snapshot.save( fileName, "PNG");
QFileInfo fi( fileName);
@@ -395,5 +397,5 @@ void ScreenshotControl::savePixmap()
if (!lnk.writeLink())
- qDebug("Writing doclink did not work");
+ odebug << "Writing doclink did not work" << oendl;
}
@@ -407,5 +409,5 @@ void ScreenshotControl::performGrab()
if (buttonPushed == 1) {
- qDebug("grabbing screen");
+ odebug << "grabbing screen" << oendl;
grabTimer->stop();
show();
@@ -421,5 +423,5 @@ void ScreenshotControl::performGrab()
QString displayEnv = getenv("QWS_DISPLAY");
- qDebug(displayEnv);
+ odebug << displayEnv << oendl;
if(( displayEnv.left(2) != ":0" ) && (!displayEnv.isEmpty())) {
@@ -458,5 +460,5 @@ void ScreenshotControl::performGrab()
header = header.arg( SCAP_model).arg( ::getenv( "USER" ) ).arg( img.numBytes() ).arg( SCAP_hostname );
- qDebug(header);
+ odebug << header << oendl;
if ( !pix.isNull() ) {