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() --- filesystemfileproxy.h | 1 + 1 file changed, 1 insertion(+) (limited to 'filesystemfileproxy.h') 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; -- cgit v1.2.3-70-g09d2