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 /fileview.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 'fileview.cpp')
-rw-r--r-- | fileview.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fileview.cpp b/fileview.cpp index f4f5294..03fc76f 100644 --- a/fileview.cpp +++ b/fileview.cpp @@ -163,6 +163,9 @@ bool FileView::event(QEvent *e){ if(!curIdx.isValid() || (curIdx.column() != 0)){ return exitHover(); } + if(curIdx.data().toString() == ".."){ + return exitHover(); + } QFileInfo fi(curIdx.data(QFileSystemModel::FilePathRole).toString()); if(!fi.exists()){ return true; |