From 31bc791cb48e110db8f7b994931c1879974168a1 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 31 Oct 2010 08:26:07 +0100 Subject: 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() --- filesystemdirproxy.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'filesystemdirproxy.cpp') 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); } -- cgit v1.2.3-70-g09d2