summaryrefslogtreecommitdiffstats
path: root/filesystemfileproxy.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-10-31 08:26:07 +0100
committerArno <am@disconnect.de>2010-10-31 08:26:07 +0100
commit31bc791cb48e110db8f7b994931c1879974168a1 (patch)
tree1a7eabcb5e13fac78f62118fbbbc2a0c95d5582b /filesystemfileproxy.h
parent629841d403b13396e97d76591c3b67f156039b5c (diff)
downloadSheMov-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 'filesystemfileproxy.h')
-rw-r--r--filesystemfileproxy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/filesystemfileproxy.h b/filesystemfileproxy.h
index a7b5e18..739305d 100644
--- a/filesystemfileproxy.h
+++ b/filesystemfileproxy.h
@@ -19,6 +19,7 @@ class FilesystemFileProxy : public QSortFilterProxyModel {
FilesystemFileProxy(QObject *parent = 0);
~FilesystemFileProxy() {};
virtual QVariant data(const QModelIndex &index, int role) const;
+ virtual bool filterAcceptsRow(int sourcerow, const QModelIndex &source_parent) const;
protected:
virtual bool lessThan(const QModelIndex &left, const QModelIndex &right) const;