author | llornkcor <llornkcor> | 2004-01-08 22:46:40 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-01-08 22:46:40 (UTC) |
commit | b52dbdb9e992bd891d69601a6425086099e2ea04 (patch) (unidiff) | |
tree | 16f57fb5e0063c5095161b30a898287e22e318b5 /noncore/apps/advancedfm/advancedfm.cpp | |
parent | 5862ce131c780c38d5df7d336ec5d8fb8f62a0bc (diff) | |
download | opie-b52dbdb9e992bd891d69601a6425086099e2ea04.zip opie-b52dbdb9e992bd891d69601a6425086099e2ea04.tar.gz opie-b52dbdb9e992bd891d69601a6425086099e2ea04.tar.bz2 |
make quicklaunch again
Diffstat (limited to 'noncore/apps/advancedfm/advancedfm.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index ac16540..9c13e53 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp | |||
@@ -46,13 +46,17 @@ | |||
46 | #include <time.h> | 46 | #include <time.h> |
47 | #include <dirent.h> | 47 | #include <dirent.h> |
48 | #include <fcntl.h> | 48 | #include <fcntl.h> |
49 | #include <sys/vfs.h> | 49 | #include <sys/vfs.h> |
50 | #include <mntent.h> | 50 | #include <mntent.h> |
51 | 51 | ||
52 | #ifdef NOQUICKLAUNCH | ||
52 | AdvancedFm::AdvancedFm( ) | 53 | AdvancedFm::AdvancedFm( ) |
54 | #else | ||
55 | AdvancedFm::AdvancedFm(QWidget *,const char*, WFlags ) | ||
56 | #endif | ||
53 | : QMainWindow( ) { | 57 | : QMainWindow( ) { |
54 | init(); | 58 | init(); |
55 | renameBox = 0; | 59 | renameBox = 0; |
56 | 60 | ||
57 | unknownXpm = Resource::loadImage( "UnknownDocument" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ); | 61 | unknownXpm = Resource::loadImage( "UnknownDocument" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ); |
58 | 62 | ||
@@ -100,19 +104,19 @@ void AdvancedFm::tabChanged(QWidget *) { | |||
100 | chdir( path.latin1()); | 104 | chdir( path.latin1()); |
101 | } | 105 | } |
102 | 106 | ||
103 | 107 | ||
104 | void AdvancedFm::populateView() { | 108 | void AdvancedFm::populateView() { |
105 | 109 | ||
106 | qWarning("PopulateView"); | 110 | // qWarning("PopulateView"); |
107 | QPixmap pm; | 111 | QPixmap pm; |
108 | QListView *thisView = CurrentView(); | 112 | QListView *thisView = CurrentView(); |
109 | QDir *thisDir = CurrentDir(); | 113 | QDir *thisDir = CurrentDir(); |
110 | QString path = thisDir->canonicalPath(); | 114 | QString path = thisDir->canonicalPath(); |
111 | 115 | ||
112 | qWarning("path is "+path); | 116 | //qWarning("path is "+path); |
113 | thisView->clear(); | 117 | thisView->clear(); |
114 | thisDir->setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); | 118 | thisDir->setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); |
115 | thisDir->setMatchAllDirs(TRUE); | 119 | thisDir->setMatchAllDirs(TRUE); |
116 | thisDir->setNameFilter(filterStr); | 120 | thisDir->setNameFilter(filterStr); |
117 | QString fileL, fileS, fileDate; | 121 | QString fileL, fileS, fileDate; |
118 | QString fs= getFileSystemType((const QString &) path); | 122 | QString fs= getFileSystemType((const QString &) path); |
@@ -810,13 +814,13 @@ QListView * AdvancedFm::OtherView() { | |||
810 | return Remote_View; | 814 | return Remote_View; |
811 | else | 815 | else |
812 | return Local_View; | 816 | return Local_View; |
813 | } | 817 | } |
814 | 818 | ||
815 | void AdvancedFm::setOtherTabCurrent() { | 819 | void AdvancedFm::setOtherTabCurrent() { |
816 | qWarning("setOtherTabCurrent() %d", whichTab); | 820 | // qWarning("setOtherTabCurrent() %d", whichTab); |
817 | if ( whichTab == 1) { | 821 | if ( whichTab == 1) { |
818 | TabWidget->setCurrentWidget(1); | 822 | TabWidget->setCurrentWidget(1); |
819 | } else { | 823 | } else { |
820 | TabWidget->setCurrentWidget(0); | 824 | TabWidget->setCurrentWidget(0); |
821 | } | 825 | } |
822 | OtherView()->setFocus(); | 826 | OtherView()->setFocus(); |