-rw-r--r-- | libopie/ofileselector.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libopie/ofileselector.cc b/libopie/ofileselector.cc index bc7c6c2..c3a3514 100644 --- a/libopie/ofileselector.cc +++ b/libopie/ofileselector.cc | |||
@@ -50,64 +50,66 @@ | |||
50 | #include <qpe/mimetype.h> | 50 | #include <qpe/mimetype.h> |
51 | #include <qpe/resource.h> | 51 | #include <qpe/resource.h> |
52 | #include <qpe/storage.h> | 52 | #include <qpe/storage.h> |
53 | 53 | ||
54 | #include <unistd.h> | 54 | #include <unistd.h> |
55 | #include <stdlib.h> | 55 | #include <stdlib.h> |
56 | #include <sys/stat.h> | 56 | #include <sys/stat.h> |
57 | 57 | ||
58 | #include "ofileselector.h" | 58 | #include "ofileselector.h" |
59 | 59 | ||
60 | QMap<QString,QPixmap> *OFileSelector::m_pixmaps = 0; | 60 | QMap<QString,QPixmap> *OFileSelector::m_pixmaps = 0; |
61 | 61 | ||
62 | namespace { | 62 | namespace { |
63 | 63 | ||
64 | int indexByString( const QComboBox *box, const QString &str ){ | 64 | int indexByString( const QComboBox *box, const QString &str ){ |
65 | int index= -1; | 65 | int index= -1; |
66 | for(int i= 0; i < box->count(); i++ ){ | 66 | for(int i= 0; i < box->count(); i++ ){ |
67 | qWarning("str T%sT boxT%sT", str.latin1(), box->text(i).latin1() ); | 67 | qWarning("str T%sT boxT%sT", str.latin1(), box->text(i).latin1() ); |
68 | if( str == box->text(i ) ){ | 68 | if( str == box->text(i ) ){ |
69 | index= i; | 69 | index= i; |
70 | break; | 70 | break; |
71 | } | 71 | } |
72 | } | 72 | } |
73 | return index; | 73 | return index; |
74 | } | 74 | } |
75 | 75 | ||
76 | }; | 76 | }; |
77 | 77 | ||
78 | 78 | ||
79 | OFileSelector::OFileSelector(QWidget *wid, int mode, int selector, const QString &dirName, | 79 | OFileSelector::OFileSelector(QWidget *wid, int mode, int selector, const QString &dirName, |
80 | const QString &fileName, const QStringList &mimetypes ) : QWidget( wid ) | 80 | const QString &fileName, const QStringList &mimetypes ) : QWidget( wid ) |
81 | { | 81 | { |
82 | |||
83 | resize(wid->width(),wid->height()); | ||
82 | m_selector = selector; | 84 | m_selector = selector; |
83 | m_currentDir = dirName; | 85 | m_currentDir = dirName; |
84 | m_name = fileName; | 86 | m_name = fileName; |
85 | m_mimetypes = mimetypes; | 87 | m_mimetypes = mimetypes; |
86 | if( mimetypes.isEmpty() ) | 88 | if( mimetypes.isEmpty() ) |
87 | m_autoMime = true; | 89 | m_autoMime = true; |
88 | 90 | ||
89 | m_mode = mode; | 91 | m_mode = mode; |
90 | m_shTool = true; | 92 | m_shTool = true; |
91 | m_shPerm = true; | 93 | m_shPerm = true; |
92 | m_shLne = true; | 94 | m_shLne = true; |
93 | m_shChooser = true; | 95 | m_shChooser = true; |
94 | m_shYesNo = true; | 96 | m_shYesNo = true; |
95 | // for FILESELECTOR only view is interesting | 97 | // for FILESELECTOR only view is interesting |
96 | m_location = 0; | 98 | m_location = 0; |
97 | m_homeButton = 0; | 99 | m_homeButton = 0; |
98 | m_docButton = 0; | 100 | m_docButton = 0; |
99 | m_hideButton = 0; | 101 | m_hideButton = 0; |
100 | m_ok = 0; | 102 | m_ok = 0; |
101 | m_cancel = 0; | 103 | m_cancel = 0; |
102 | m_reread = 0; | 104 | m_reread = 0; |
103 | m_up = 0; | 105 | m_up = 0; |
104 | m_View = 0; | 106 | m_View = 0; |
105 | m_select = 0; | 107 | m_select = 0; |
106 | m_stack = 0; | 108 | m_stack = 0; |
107 | 109 | ||
108 | m_select = 0; | 110 | m_select = 0; |
109 | m_stack = 0; | 111 | m_stack = 0; |
110 | m_lay = 0; | 112 | m_lay = 0; |
111 | m_boxToolbar = 0; | 113 | m_boxToolbar = 0; |
112 | m_boxOk = 0; | 114 | m_boxOk = 0; |
113 | m_edit = 0; | 115 | m_edit = 0; |