-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 5 | ||||
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.h | 1 | ||||
-rw-r--r-- | noncore/apps/advancedfm/advancedfmData.cpp | 6 | ||||
-rw-r--r-- | noncore/apps/advancedfm/advancedfmMenu.cpp | 10 |
4 files changed, 15 insertions, 7 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index 7fba0af..d7bad51 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp @@ -9,9 +9,8 @@ * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * ***************************************************************************/ #define DEVELOPERS_VERSION - #include "advancedfm.h" // #include <opie/ofileselector.h> // #include <opie/ofiledialog.h> @@ -394,9 +393,9 @@ void AdvancedFm::localListPressed( int mouse, QListViewItem *, const QPoint& , i switch (mouse) { case 1: break; case 2: - menuTimer.start( 750, TRUE ); + menuTimer.start( 500, TRUE ); qDebug("Start menu timer\n"); break; }; } @@ -406,9 +405,9 @@ void AdvancedFm::remoteListPressed( int mouse, QListViewItem*, const QPoint&, in switch (mouse) { case 1: break; case 2: - menuTimer.start( 750, TRUE ); + menuTimer.start( 500, TRUE ); qDebug("Start menu timer"); break; }; } diff --git a/noncore/apps/advancedfm/advancedfm.h b/noncore/apps/advancedfm/advancedfm.h index 12ad474..f846c66 100644 --- a/noncore/apps/advancedfm/advancedfm.h +++ b/noncore/apps/advancedfm/advancedfm.h @@ -11,8 +11,9 @@ ***************************************************************************/ #ifndef ADVANCEDFM_H #define ADVANCEDFM_H #define QTOPIA_INTERNAL_FSLP // to get access to fileproperties +#define QT_QWS_OPIE #include <qpe/ir.h> #include <qvariant.h> diff --git a/noncore/apps/advancedfm/advancedfmData.cpp b/noncore/apps/advancedfm/advancedfmData.cpp index 4c24e83..619a7a9 100644 --- a/noncore/apps/advancedfm/advancedfmData.cpp +++ b/noncore/apps/advancedfm/advancedfmData.cpp @@ -29,10 +29,12 @@ #include <sys/utsname.h> void AdvancedFm::init() { - - setCaption( tr( "AdvancedFm" ) ); +#if defined(QT_QWS_OPIE) + qDebug("<<<<<<<<<<<<<<<<<<<<<<<< OPIE!!!"); +#endif + setCaption( tr( "AdvancedFm" ) ); QGridLayout *layout = new QGridLayout( this ); layout->setSpacing( 2); layout->setMargin( 2); diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp index 7ee5065..6d37904 100644 --- a/noncore/apps/advancedfm/advancedfmMenu.cpp +++ b/noncore/apps/advancedfm/advancedfmMenu.cpp @@ -342,23 +342,29 @@ void AdvancedFm::filePerms() { } } void AdvancedFm::doProperties() { +#if defined(QT_QWS_OPIE) + QStringList curFileList = getPath(); + QString filePath; if (TabWidget->currentPageIndex() == 0) { filePath = currentDir.canonicalPath()+"/"; } else { filePath= currentRemoteDir.canonicalPath()+"/"; } - // qDebug("%d",curFileList.count()); - for ( QStringList::Iterator it = curFileList.begin(); it != curFileList.end(); ++it ) { + qDebug("%d",curFileList.count()); + + for ( QStringList::Iterator it = curFileList.begin(); it != curFileList.end(); ++it ) { qDebug((filePath+*it)); DocLnk lnk( (filePath+*it)); LnkProperties prop( &lnk ); prop.showMaximized(); prop.exec(); } +#endif + } void AdvancedFm::upDir() { if (TabWidget->currentPageIndex() == 0) { |