summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2003-06-15 00:12:38 (UTC)
committer llornkcor <llornkcor>2003-06-15 00:12:38 (UTC)
commit7feda6ad0e05602d0a939f9867f296f62ae758cd (patch) (side-by-side diff)
tree8240dd754d2e1dd4a72b5cddc11f37d44a680b6a
parentceaa4586c271b04f312109d6b1dd1be8be6e3afd (diff)
downloadopie-7feda6ad0e05602d0a939f9867f296f62ae758cd.zip
opie-7feda6ad0e05602d0a939f9867f296f62ae758cd.tar.gz
opie-7feda6ad0e05602d0a939f9867f296f62ae758cd.tar.bz2
fix
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/applets/screenshotapplet/screenshot.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/core/applets/screenshotapplet/screenshot.cpp b/core/applets/screenshotapplet/screenshot.cpp
index fab4044..b987392 100644
--- a/core/applets/screenshotapplet/screenshot.cpp
+++ b/core/applets/screenshotapplet/screenshot.cpp
@@ -10,51 +10,35 @@
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
**********************************************************************/
#include "screenshot.h"
#include "inputDialog.h"
-#include <qapplication.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <unistd.h>
-#include <qpe/resource.h>
#include <qpe/qpeapplication.h>
-#include <qpe/timestring.h>
-#include <qpe/resource.h>
-#include <qpe/config.h>
#include <qpe/applnk.h>
-#include <qpe/config.h>
#include <qlineedit.h>
#include <qdir.h>
-#include <qfileinfo.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qpainter.h>
-#include <qcombobox.h>
#include <qspinbox.h>
-#include <qslider.h>
#include <qlayout.h>
-#include <qframe.h>
-#include <qpixmap.h>
-#include <qregexp.h>
-#include <qstring.h>
-#include <qfile.h>
-#include <qtimer.h>
-#include <qfile.h>
-#include <qdatastream.h>
#include <qcheckbox.h>
#include <qmessagebox.h>
+#include <qimage.h>
static char * snapshot_xpm[] = {
"16 16 10 1",
" c None",
". c #000000",
"+ c #00C000",
"@ c #585858",
@@ -196,17 +180,17 @@ void ScreenshotControl::savePixmap()
QFileInfo fi( fileName);
lnk.setName( fi.fileName()); //sets file name
if (!lnk.writeLink())
qDebug("Writing doclink did not work");
}
else {
- fileName = "sc_" + TimeString::dateString( QDateTime::currentDateTime(), false, true);
+ fileName = "sc_" + QDateTime::currentDateTime().toString();
fileName.replace(QRegExp("'"), "");
fileName.replace(QRegExp(" "), "_");
fileName.replace(QRegExp(":"), ".");
fileName.replace(QRegExp(","), "");
QString dirName = QDir::homeDirPath() + "/Documents/image/png/";
if ( !QDir( dirName).exists() ) {
qDebug("making dir " + dirName);