summaryrefslogtreecommitdiff
authordwmw2 <dwmw2>2002-05-09 10:33:18 (UTC)
committer dwmw2 <dwmw2>2002-05-09 10:33:18 (UTC)
commit388e930a890f11c51dd862f6258c1fc60b396334 (patch) (unidiff)
tree69f322f31c2b2c3338fdb461924349c106f72f59
parent4216d2833503440d25ee40683cd563f379f125a6 (diff)
downloadopie-388e930a890f11c51dd862f6258c1fc60b396334.zip
opie-388e930a890f11c51dd862f6258c1fc60b396334.tar.gz
opie-388e930a890f11c51dd862f6258c1fc60b396334.tar.bz2
Add missing #include <qpainter.h>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/ofileselector.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libopie/ofileselector.cc b/libopie/ofileselector.cc
index d780da9..8299b3d 100644
--- a/libopie/ofileselector.cc
+++ b/libopie/ofileselector.cc
@@ -1,59 +1,60 @@
1 1
2 2
3#include <qcheckbox.h> 3#include <qcheckbox.h>
4#include <qcombobox.h> 4#include <qcombobox.h>
5#include <qheader.h> 5#include <qheader.h>
6#include <qlabel.h> 6#include <qlabel.h>
7#include <qabstractlayout.h> 7#include <qabstractlayout.h>
8#include <qlayout.h> 8#include <qlayout.h>
9#include <qlineedit.h> 9#include <qlineedit.h>
10#include <qlistview.h> 10#include <qlistview.h>
11#include <qmessagebox.h> 11#include <qmessagebox.h>
12#include <qpainter.h>
12#include <qpushbutton.h> 13#include <qpushbutton.h>
13#include <qwidgetstack.h> 14#include <qwidgetstack.h>
14#include <qpopupmenu.h> 15#include <qpopupmenu.h>
15#include <qdir.h> 16#include <qdir.h>
16#include <qfile.h> 17#include <qfile.h>
17#include <qfileinfo.h> 18#include <qfileinfo.h>
18#include <qtimer.h> 19#include <qtimer.h>
19 20
20#include <qpe/qpeapplication.h> 21#include <qpe/qpeapplication.h>
21#include <qpe/applnk.h> 22#include <qpe/applnk.h>
22#include <qpe/fileselector.h> 23#include <qpe/fileselector.h>
23#include <qpe/global.h> 24#include <qpe/global.h>
24#include <qpe/mimetype.h> 25#include <qpe/mimetype.h>
25#include <qpe/resource.h> 26#include <qpe/resource.h>
26#include <qpe/storage.h> 27#include <qpe/storage.h>
27 28
28#include <unistd.h> 29#include <unistd.h>
29#include <stdlib.h> 30#include <stdlib.h>
30#include <sys/stat.h> 31#include <sys/stat.h>
31 32
32#include "ofileselector.h" 33#include "ofileselector.h"
33 34
34 35
35QMap<QString,QPixmap> *OFileSelector::m_pixmaps = 0; 36QMap<QString,QPixmap> *OFileSelector::m_pixmaps = 0;
36 37
37namespace { 38namespace {
38 int indexByString( const QComboBox *box, const QString &str ){ 39 int indexByString( const QComboBox *box, const QString &str ){
39 int index= 0; 40 int index= 0;
40 for(int i= 0; i < box->count(); i++ ){ 41 for(int i= 0; i < box->count(); i++ ){
41 if( str == box->text(i ) ){ 42 if( str == box->text(i ) ){
42 index= i; 43 index= i;
43 break; 44 break;
44 } 45 }
45 } 46 }
46 return index; 47 return index;
47 } 48 }
48 class OFileSelectorItem : public QListViewItem { 49 class OFileSelectorItem : public QListViewItem {
49 public: 50 public:
50 OFileSelectorItem(QListView *view, const QPixmap &pixmap, const QString &path, 51 OFileSelectorItem(QListView *view, const QPixmap &pixmap, const QString &path,
51 const QString &date, const QString &size, const QString &mDir, 52 const QString &date, const QString &size, const QString &mDir,
52 bool isLocked=false, bool isDir=false ): QListViewItem(view) { 53 bool isLocked=false, bool isDir=false ): QListViewItem(view) {
53 setPixmap(0, pixmap ); 54 setPixmap(0, pixmap );
54 setText(1, path ); 55 setText(1, path );
55 setText(2, size ); 56 setText(2, size );
56 setText(3, date ); 57 setText(3, date );
57 //setText(4, mDir ); 58 //setText(4, mDir );
58 m_dir = mDir; 59 m_dir = mDir;
59 dir = isDir; 60 dir = isDir;