Diffstat (limited to 'core/applets/screenshotapplet/screenshot.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/applets/screenshotapplet/screenshot.cpp | 20 |
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 @@ -18,2 +18,3 @@ /* OPIE */ +#include <opie2/odebug.h> #include <opie2/otaskbarapplet.h> @@ -21,2 +22,4 @@ #include <qpe/applnk.h> +using namespace Opie::Core; +using namespace Opie::Ui; @@ -41,3 +44,2 @@ /* XPM */ -using namespace Opie::Ui; static char * snapshot_xpm[] = { @@ -364,3 +366,3 @@ void ScreenshotControl::savePixmap() lnk.setFile(fileName); //sets File property - qDebug("saving file " + fileName); + odebug << "saving file " + fileName << oendl; snapshot.save( fileName, "PNG"); @@ -370,3 +372,3 @@ void ScreenshotControl::savePixmap() if (!lnk.writeLink()) - qDebug("Writing doclink did not work"); + odebug << "Writing doclink did not work" << oendl; } @@ -382,3 +384,3 @@ void ScreenshotControl::savePixmap() if ( !QDir( dirName).exists() ) { - qDebug("making dir " + dirName); + odebug << "making dir " + dirName << oendl; QString msg = "mkdir -p " + dirName; @@ -390,3 +392,3 @@ void ScreenshotControl::savePixmap() lnk.setFile(fileName); //sets File property - qDebug("saving file " + fileName); + odebug << "saving file " + fileName << oendl; snapshot.save( fileName, "PNG"); @@ -396,3 +398,3 @@ void ScreenshotControl::savePixmap() if (!lnk.writeLink()) - qDebug("Writing doclink did not work"); + odebug << "Writing doclink did not work" << oendl; @@ -408,3 +410,3 @@ void ScreenshotControl::performGrab() if (buttonPushed == 1) { - qDebug("grabbing screen"); + odebug << "grabbing screen" << oendl; grabTimer->stop(); @@ -422,3 +424,3 @@ void ScreenshotControl::performGrab() QString displayEnv = getenv("QWS_DISPLAY"); - qDebug(displayEnv); + odebug << displayEnv << oendl; @@ -459,3 +461,3 @@ void ScreenshotControl::performGrab() header = header.arg( SCAP_model).arg( ::getenv( "USER" ) ).arg( img.numBytes() ).arg( SCAP_hostname ); - qDebug(header); + odebug << header << oendl; |