-rw-r--r-- | core/applets/screenshotapplet/screenshot.cpp | 20 |
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 @@ -12,47 +12,31 @@ ** **********************************************************************/ #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", @@ -198,13 +182,13 @@ void ScreenshotControl::savePixmap() 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/"; |