From ffffb6e63abfc33bc339d89a7bfcdd1734c48bef Mon Sep 17 00:00:00 2001 From: Arno Date: Thu, 4 Jan 2018 10:55:25 +0100 Subject: Implement filtering by MIME-Type The MIME-type is a regular expression that can be configured. Show the configured types in a QComboBox with the special value "" at the top, which invalidates the MIME type filter. --- filewidget.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'filewidget.h') diff --git a/filewidget.h b/filewidget.h index 964c6a7..a58ec06 100644 --- a/filewidget.h +++ b/filewidget.h @@ -62,8 +62,7 @@ class FileWidget : public QWidget { void properties(); void properties(const QModelIndex &idx); void preview(); - void filter(); - void clearFilter(); + void filter(int column, QString regexp); void copy(); void cut(); void paste(); @@ -95,6 +94,7 @@ class FileWidget : public QWidget { void writeCache(); void cutOrCopy(); void populateFavDirs(); + void populateMimeFilters(); QList constructRow(CachedFileData *fd) const; QAction *createSeparator(); QLineEdit *mDir; @@ -130,6 +130,7 @@ class FileWidget : public QWidget { FileCopier *mFileCopier; QCache mFileCache; QComboBox *mFavDirs; + QComboBox *mMimeFilters; int mFileAction; }; -- cgit v1.2.3-70-g09d2