-rw-r--r-- | noncore/apps/advancedfm/advancedfmData.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/noncore/apps/advancedfm/advancedfmData.cpp b/noncore/apps/advancedfm/advancedfmData.cpp index ce7da24..2997c55 100644 --- a/noncore/apps/advancedfm/advancedfmData.cpp +++ b/noncore/apps/advancedfm/advancedfmData.cpp | |||
@@ -20,27 +20,25 @@ | |||
20 | #include <qhbox.h> | 20 | #include <qhbox.h> |
21 | #include <qmenubar.h> | 21 | #include <qmenubar.h> |
22 | #include <qcombobox.h> | 22 | #include <qcombobox.h> |
23 | #include <qtoolbutton.h> | 23 | #include <qtoolbutton.h> |
24 | #include <qlineedit.h> | 24 | #include <qlineedit.h> |
25 | #include <qlistview.h> | 25 | #include <qlistview.h> |
26 | 26 | ||
27 | #include <sys/utsname.h> | 27 | #include <sys/utsname.h> |
28 | 28 | ||
29 | 29 | ||
30 | using namespace Opie::Ui; | 30 | using namespace Opie::Ui; |
31 | void AdvancedFm::init() { | 31 | void AdvancedFm::init() { |
32 | #if defined(QT_QWS_OPIE) | 32 | b = false; |
33 | qDebug("<<<<<<<<<<<<<<<<<<<<<<<< OPIE!!!"); | ||
34 | #endif | ||
35 | setCaption( tr( "AdvancedFm" ) ); | 33 | setCaption( tr( "AdvancedFm" ) ); |
36 | 34 | ||
37 | QVBoxLayout *layout = new QVBoxLayout( this ); | 35 | QVBoxLayout *layout = new QVBoxLayout( this ); |
38 | layout->setSpacing( 2); | 36 | layout->setSpacing( 2); |
39 | layout->setMargin( 0); // squeeze | 37 | layout->setMargin( 0); // squeeze |
40 | 38 | ||
41 | QMenuBar *menuBar = new QMenuBar(this); | 39 | QMenuBar *menuBar = new QMenuBar(this); |
42 | menuBar->setMargin( 0 ); // squeeze | 40 | menuBar->setMargin( 0 ); // squeeze |
43 | fileMenu = new QPopupMenu( this ); | 41 | fileMenu = new QPopupMenu( this ); |
44 | viewMenu = new QPopupMenu( this ); | 42 | viewMenu = new QPopupMenu( this ); |
45 | // customDirMenu = new QPopupMenu( this ); | 43 | // customDirMenu = new QPopupMenu( this ); |
46 | 44 | ||
@@ -228,25 +226,24 @@ void AdvancedFm::init() { | |||
228 | qDebug("not have cf"); | 226 | qDebug("not have cf"); |
229 | cfButton->hide(); | 227 | cfButton->hide(); |
230 | } | 228 | } |
231 | currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); | 229 | currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); |
232 | currentDir.setPath( QDir::currentDirPath()); | 230 | currentDir.setPath( QDir::currentDirPath()); |
233 | 231 | ||
234 | currentRemoteDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); | 232 | currentRemoteDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); |
235 | currentRemoteDir.setPath( QDir::currentDirPath()); | 233 | currentRemoteDir.setPath( QDir::currentDirPath()); |
236 | 234 | ||
237 | // b = TRUE; | 235 | // b = TRUE; |
238 | 236 | ||
239 | filterStr="*"; | 237 | filterStr="*"; |
240 | b=FALSE; | ||
241 | showMenuHidden(); | 238 | showMenuHidden(); |
242 | TabWidget->setCurrentWidget(0); | 239 | TabWidget->setCurrentWidget(0); |
243 | 240 | ||
244 | } | 241 | } |
245 | 242 | ||
246 | void AdvancedFm::initConnections() | 243 | void AdvancedFm::initConnections() |
247 | { | 244 | { |
248 | 245 | ||
249 | connect( qApp,SIGNAL( aboutToQuit()), | 246 | connect( qApp,SIGNAL( aboutToQuit()), |
250 | this, SLOT( cleanUp()) ); | 247 | this, SLOT( cleanUp()) ); |
251 | connect( qpeDirButton ,SIGNAL(released()), | 248 | connect( qpeDirButton ,SIGNAL(released()), |
252 | this,SLOT( QPEButtonPushed()) ); | 249 | this,SLOT( QPEButtonPushed()) ); |