author | llornkcor <llornkcor> | 2003-06-15 00:12:38 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-06-15 00:12:38 (UTC) |
commit | 7feda6ad0e05602d0a939f9867f296f62ae758cd (patch) (unidiff) | |
tree | 8240dd754d2e1dd4a72b5cddc11f37d44a680b6a | |
parent | ceaa4586c271b04f312109d6b1dd1be8be6e3afd (diff) | |
download | opie-7feda6ad0e05602d0a939f9867f296f62ae758cd.zip opie-7feda6ad0e05602d0a939f9867f296f62ae758cd.tar.gz opie-7feda6ad0e05602d0a939f9867f296f62ae758cd.tar.bz2 |
fix
-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 | |||
@@ -14,43 +14,27 @@ | |||
14 | 14 | ||
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[] = { |
56 | "16 16 10 1", | 40 | "16 16 10 1", |
@@ -200,9 +184,9 @@ void ScreenshotControl::savePixmap() | |||
200 | qDebug("Writing doclink did not work"); | 184 | qDebug("Writing doclink did not work"); |
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(":"), "."); |
208 | fileName.replace(QRegExp(","), ""); | 192 | fileName.replace(QRegExp(","), ""); |