diff options
author | Arno <am@disconnect.de> | 2010-10-31 08:26:07 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-10-31 08:26:07 +0100 |
commit | 31bc791cb48e110db8f7b994931c1879974168a1 (patch) | |
tree | 1a7eabcb5e13fac78f62118fbbbc2a0c95d5582b /filesystemdirproxy.cpp | |
parent | 629841d403b13396e97d76591c3b67f156039b5c (diff) | |
download | SheMov-31bc791cb48e110db8f7b994931c1879974168a1.tar.gz SheMov-31bc791cb48e110db8f7b994931c1879974168a1.tar.bz2 SheMov-31bc791cb48e110db8f7b994931c1879974168a1.zip |
Added ".." entry to FileView
Show ".." entry in FileView and make it go to the parent directory. Had
to work around QT Bug 14760: NoDot doesn't work so the "." entry has to
be filtered in filterAcceptsRow()
Diffstat (limited to 'filesystemdirproxy.cpp')
-rw-r--r-- | filesystemdirproxy.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/filesystemdirproxy.cpp b/filesystemdirproxy.cpp index ae5d188..b43fe62 100644 --- a/filesystemdirproxy.cpp +++ b/filesystemdirproxy.cpp @@ -18,6 +18,10 @@ bool FilesystemDirProxy::filterAcceptsRow(int sourcerow, const QModelIndex &sour if(!idx.isValid()){ return false; } + QString fName = idx.data().toString(); + if((fName == "." ) || (fName == "..")){ + return false; + } return m->isDir(idx); } |