author | dwmw2 <dwmw2> | 2002-05-09 11:59:51 (UTC) |
---|---|---|
committer | dwmw2 <dwmw2> | 2002-05-09 11:59:51 (UTC) |
commit | 67077883f382bd73bf4bdceda8994fa4e47ee5e6 (patch) (unidiff) | |
tree | 66433081886ad27170f95e23ccd36d487d90c95a | |
parent | d9b40786a885451caf3f22612ec401df1edff983 (diff) | |
download | opie-67077883f382bd73bf4bdceda8994fa4e47ee5e6.zip opie-67077883f382bd73bf4bdceda8994fa4e47ee5e6.tar.gz opie-67077883f382bd73bf4bdceda8994fa4e47ee5e6.tar.bz2 |
#include <qpainter.h>
-rw-r--r-- | noncore/unsupported/filebrowser/filebrowser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/unsupported/filebrowser/filebrowser.cpp b/noncore/unsupported/filebrowser/filebrowser.cpp index 1bb7984..8c01655 100644 --- a/noncore/unsupported/filebrowser/filebrowser.cpp +++ b/noncore/unsupported/filebrowser/filebrowser.cpp | |||
@@ -21,48 +21,49 @@ | |||
21 | #include "inlineedit.h" | 21 | #include "inlineedit.h" |
22 | #include "filebrowser.h" | 22 | #include "filebrowser.h" |
23 | #include "filePermissions.h" | 23 | #include "filePermissions.h" |
24 | #include <qpe/resource.h> | 24 | #include <qpe/resource.h> |
25 | #include <qpe/global.h> | 25 | #include <qpe/global.h> |
26 | #include <qpe/mimetype.h> | 26 | #include <qpe/mimetype.h> |
27 | #include <qpe/applnk.h> | 27 | #include <qpe/applnk.h> |
28 | #include <qpe/config.h> | 28 | #include <qpe/config.h> |
29 | 29 | ||
30 | #include <qcopchannel_qws.h> | 30 | #include <qcopchannel_qws.h> |
31 | #include <qpe/qcopenvelope_qws.h> | 31 | #include <qpe/qcopenvelope_qws.h> |
32 | 32 | ||
33 | #include <qmessagebox.h> | 33 | #include <qmessagebox.h> |
34 | #include <qdir.h> | 34 | #include <qdir.h> |
35 | #include <qregexp.h> | 35 | #include <qregexp.h> |
36 | #include <qheader.h> | 36 | #include <qheader.h> |
37 | #include <qpe/qpetoolbar.h> | 37 | #include <qpe/qpetoolbar.h> |
38 | #include <qpopupmenu.h> | 38 | #include <qpopupmenu.h> |
39 | #include <qpe/qpemenubar.h> | 39 | #include <qpe/qpemenubar.h> |
40 | #include <qaction.h> | 40 | #include <qaction.h> |
41 | #include <qstringlist.h> | 41 | #include <qstringlist.h> |
42 | #include <qcursor.h> | 42 | #include <qcursor.h> |
43 | #include <qmultilineedit.h> | 43 | #include <qmultilineedit.h> |
44 | #include <qfont.h> | 44 | #include <qfont.h> |
45 | #include <qpainter.h> | ||
45 | 46 | ||
46 | #include <unistd.h> | 47 | #include <unistd.h> |
47 | #include <stdlib.h> | 48 | #include <stdlib.h> |
48 | #include <sys/stat.h> | 49 | #include <sys/stat.h> |
49 | 50 | ||
50 | // | 51 | // |
51 | // FileItem | 52 | // FileItem |
52 | // | 53 | // |
53 | FileItem::FileItem( QListView * parent, const QFileInfo & fi ) | 54 | FileItem::FileItem( QListView * parent, const QFileInfo & fi ) |
54 | : QListViewItem( parent ), | 55 | : QListViewItem( parent ), |
55 | fileInfo( fi ) | 56 | fileInfo( fi ) |
56 | { | 57 | { |
57 | QDate d = fi.lastModified().date(); | 58 | QDate d = fi.lastModified().date(); |
58 | 59 | ||
59 | setText( 0, fi.fileName() ); | 60 | setText( 0, fi.fileName() ); |
60 | setText( 1, sizeString( fi.size() ) + " " ); | 61 | setText( 1, sizeString( fi.size() ) + " " ); |
61 | setText( 2, QString().sprintf("%4d-%02d-%02d",d.year(), d.month(), d.day() ) ); | 62 | setText( 2, QString().sprintf("%4d-%02d-%02d",d.year(), d.month(), d.day() ) ); |
62 | 63 | ||
63 | MimeType mt(fi.filePath()); | 64 | MimeType mt(fi.filePath()); |
64 | 65 | ||
65 | if ( fi.isSymLink() ) | 66 | if ( fi.isSymLink() ) |
66 | setText( 3, "symlink" ); | 67 | setText( 3, "symlink" ); |
67 | else if( fi.isDir() ) | 68 | else if( fi.isDir() ) |
68 | setText( 3, "directory" ); | 69 | setText( 3, "directory" ); |