author | bipolar <bipolar> | 2002-03-02 00:36:54 (UTC) |
---|---|---|
committer | bipolar <bipolar> | 2002-03-02 00:36:54 (UTC) |
commit | 1b89006f83e7516e13f808742d118e209377abcc (patch) (side-by-side diff) | |
tree | 853cb0772bcf385eb5e342f20ffbbdbb91a3c4a4 | |
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.
-rw-r--r-- | core/apps/textedit/fileBrowser.cpp | 6 | ||||
-rw-r--r-- | core/apps/textedit/fileSaver.cpp | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/core/apps/textedit/fileBrowser.cpp b/core/apps/textedit/fileBrowser.cpp index 3e3cc3a..b029e5b 100644 --- a/core/apps/textedit/fileBrowser.cpp +++ b/core/apps/textedit/fileBrowser.cpp @@ -72,5 +72,5 @@ void fileBrowser::populateList() ListView->clear(); //qDebug(currentDir.canonicalPath()); - currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden ); + currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); currentDir.setMatchAllDirs(TRUE); @@ -79,5 +79,5 @@ void fileBrowser::populateList() // currentDir.setNameFilter("*.txt;*.etx"); QString fileL, fileS; - const QFileInfoList *list = currentDir.entryInfoList(QDir::All /*, QDir::SortByMask*/); + const QFileInfoList *list = currentDir.entryInfoList( /*QDir::All*/ /*, QDir::SortByMask*/); QFileInfoListIterator it(*list); QFileInfo *fi; @@ -97,5 +97,5 @@ void fileBrowser::populateList() if( QDir(QDir::cleanDirPath(currentDir.canonicalPath()+"/"+fileL)).exists() ) { fileL+="/"; -// qDebug(currentDir.canonicalPath()+fileL); +// qDebug( fileL); } } 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 @@ -83,5 +83,4 @@ fileSaver::~fileSaver() } - void fileSaver::populateList() { @@ -93,5 +92,5 @@ void fileSaver::populateList() currentDir.setNameFilter("*"); QString fileL, fileS; - const QFileInfoList *list = currentDir.entryInfoList(QDir::All /*, QDir::SortByMask*/); + const QFileInfoList *list = currentDir.entryInfoList( /*QDir::All*/ /*, QDir::SortByMask*/); QFileInfoListIterator it(*list); QFileInfo *fi; |