author | bipolar <bipolar> | 2002-03-02 00:36:54 (UTC) |
---|---|---|
committer | bipolar <bipolar> | 2002-03-02 00:36:54 (UTC) |
commit | 1b89006f83e7516e13f808742d118e209377abcc (patch) (unidiff) | |
tree | 853cb0772bcf385eb5e342f20ffbbdbb91a3c4a4 /core/apps/textedit/fileSaver.cpp | |
parent | d81f7934384adf5c06dddc1998e01d474419c7b0 (diff) | |
download | opie-1b89006f83e7516e13f808742d118e209377abcc.zip opie-1b89006f83e7516e13f808742d118e209377abcc.tar.gz opie-1b89006f83e7516e13f808742d118e209377abcc.tar.bz2 |
ljp (llornkcor) commit: fixed file dialogs not showing hidden files and dirs.
Diffstat (limited to 'core/apps/textedit/fileSaver.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/textedit/fileSaver.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/apps/textedit/fileSaver.cpp b/core/apps/textedit/fileSaver.cpp index de594aa..f3be914 100644 --- a/core/apps/textedit/fileSaver.cpp +++ b/core/apps/textedit/fileSaver.cpp | |||
@@ -79,23 +79,22 @@ fileSaver::fileSaver( QWidget* parent, const char* name, bool modal, WFlags fl | |||
79 | } | 79 | } |
80 | 80 | ||
81 | fileSaver::~fileSaver() | 81 | fileSaver::~fileSaver() |
82 | { | 82 | { |
83 | } | 83 | } |
84 | 84 | ||
85 | |||
86 | void fileSaver::populateList() | 85 | void fileSaver::populateList() |
87 | { | 86 | { |
88 | ListView->clear(); | 87 | ListView->clear(); |
89 | currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden ); | 88 | currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden ); |
90 | currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); | 89 | currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); |
91 | currentDir.setMatchAllDirs(TRUE); | 90 | currentDir.setMatchAllDirs(TRUE); |
92 | 91 | ||
93 | currentDir.setNameFilter("*"); | 92 | currentDir.setNameFilter("*"); |
94 | QString fileL, fileS; | 93 | QString fileL, fileS; |
95 | const QFileInfoList *list = currentDir.entryInfoList(QDir::All /*, QDir::SortByMask*/); | 94 | const QFileInfoList *list = currentDir.entryInfoList( /*QDir::All*/ /*, QDir::SortByMask*/); |
96 | QFileInfoListIterator it(*list); | 95 | QFileInfoListIterator it(*list); |
97 | QFileInfo *fi; | 96 | QFileInfo *fi; |
98 | while ( (fi=it.current()) ) { | 97 | while ( (fi=it.current()) ) { |
99 | 98 | ||
100 | if (fi->isSymLink() ){ | 99 | if (fi->isSymLink() ){ |
101 | QString symLink=fi->readLink(); | 100 | QString symLink=fi->readLink(); |