-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 | |||
@@ -15,41 +15,25 @@ | |||
15 | #include "screenshot.h" | 15 | #include "screenshot.h" |
16 | #include "inputDialog.h" | 16 | #include "inputDialog.h" |
17 | 17 | ||
18 | #include <qapplication.h> | ||
19 | #include <stdlib.h> | 18 | #include <stdlib.h> |
20 | #include <sys/socket.h> | 19 | #include <sys/socket.h> |
21 | #include <netinet/in.h> | 20 | #include <netinet/in.h> |
22 | #include <netdb.h> | 21 | #include <netdb.h> |
23 | #include <unistd.h> | 22 | #include <unistd.h> |
24 | 23 | ||
25 | #include <qpe/resource.h> | ||
26 | #include <qpe/qpeapplication.h> | 24 | #include <qpe/qpeapplication.h> |
27 | #include <qpe/timestring.h> | ||
28 | #include <qpe/resource.h> | ||
29 | #include <qpe/config.h> | ||
30 | #include <qpe/applnk.h> | 25 | #include <qpe/applnk.h> |
31 | #include <qpe/config.h> | ||
32 | 26 | ||
33 | #include <qlineedit.h> | 27 | #include <qlineedit.h> |
34 | #include <qdir.h> | 28 | #include <qdir.h> |
35 | #include <qfileinfo.h> | ||
36 | #include <qlabel.h> | 29 | #include <qlabel.h> |
37 | #include <qpushbutton.h> | 30 | #include <qpushbutton.h> |
38 | #include <qpainter.h> | 31 | #include <qpainter.h> |
39 | #include <qcombobox.h> | ||
40 | #include <qspinbox.h> | 32 | #include <qspinbox.h> |
41 | #include <qslider.h> | ||
42 | #include <qlayout.h> | 33 | #include <qlayout.h> |
43 | #include <qframe.h> | ||
44 | #include <qpixmap.h> | ||
45 | #include <qregexp.h> | ||
46 | #include <qstring.h> | ||
47 | #include <qfile.h> | ||
48 | #include <qtimer.h> | ||
49 | #include <qfile.h> | ||
50 | #include <qdatastream.h> | ||
51 | #include <qcheckbox.h> | 34 | #include <qcheckbox.h> |
52 | #include <qmessagebox.h> | 35 | #include <qmessagebox.h> |
36 | #include <qimage.h> | ||
53 | 37 | ||
54 | 38 | ||
55 | static char * snapshot_xpm[] = { | 39 | static char * snapshot_xpm[] = { |
@@ -201,7 +185,7 @@ void ScreenshotControl::savePixmap() | |||
201 | } | 185 | } |
202 | else { | 186 | else { |
203 | 187 | ||
204 | fileName = "sc_" + TimeString::dateString( QDateTime::currentDateTime(), false, true); | 188 | fileName = "sc_" + QDateTime::currentDateTime().toString(); |
205 | fileName.replace(QRegExp("'"), ""); | 189 | fileName.replace(QRegExp("'"), ""); |
206 | fileName.replace(QRegExp(" "), "_"); | 190 | fileName.replace(QRegExp(" "), "_"); |
207 | fileName.replace(QRegExp(":"), "."); | 191 | fileName.replace(QRegExp(":"), "."); |