summaryrefslogtreecommitdiff
path: root/core/applets/screenshotapplet/screenshot.cpp
authormickeyl <mickeyl>2004-04-05 12:48:49 (UTC)
committer mickeyl <mickeyl>2004-04-05 12:48:49 (UTC)
commitf1708be741dfb73ceaffb633b44093f2cb2b3d57 (patch) (side-by-side diff)
tree0bdcab2ac6c5f0e5cac67eb58807a50bb79d82e0 /core/applets/screenshotapplet/screenshot.cpp
parent0b481957a2eebf28b05d9803780d05ad4232aa00 (diff)
downloadopie-f1708be741dfb73ceaffb633b44093f2cb2b3d57.zip
opie-f1708be741dfb73ceaffb633b44093f2cb2b3d57.tar.gz
opie-f1708be741dfb73ceaffb633b44093f2cb2b3d57.tar.bz2
convert core/applets/* to Opie debug framework
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
@@ -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;