summaryrefslogtreecommitdiffstats
path: root/filewidget.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2018-01-04 10:55:25 +0100
committerArno <arno@disconnect.de>2018-01-04 10:55:25 +0100
commitffffb6e63abfc33bc339d89a7bfcdd1734c48bef (patch)
treeeb7869ac8b4c81ef510f568f536a82e3a3b26897 /filewidget.h
parent94869e2c1fc55bec86c80777baa41f2c9f41e4ed (diff)
downloadShemovCleaner-ffffb6e63abfc33bc339d89a7bfcdd1734c48bef.tar.gz
ShemovCleaner-ffffb6e63abfc33bc339d89a7bfcdd1734c48bef.tar.bz2
ShemovCleaner-ffffb6e63abfc33bc339d89a7bfcdd1734c48bef.zip
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 "<all>" at the top, which invalidates the MIME type filter.
Diffstat (limited to 'filewidget.h')
-rw-r--r--filewidget.h5
1 files changed, 3 insertions, 2 deletions
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<QStandardItem*> constructRow(CachedFileData *fd) const;
QAction *createSeparator();
QLineEdit *mDir;
@@ -130,6 +130,7 @@ class FileWidget : public QWidget {
FileCopier *mFileCopier;
QCache<QString, CachedFileData> mFileCache;
QComboBox *mFavDirs;
+ QComboBox *mMimeFilters;
int mFileAction;
};