summaryrefslogtreecommitdiffstats
path: root/filesorter.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 /filesorter.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 'filesorter.h')
-rw-r--r--filesorter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/filesorter.h b/filesorter.h
index 11012ed..968edf2 100644
--- a/filesorter.h
+++ b/filesorter.h
@@ -19,6 +19,7 @@ class VideoSorter : public QSortFilterProxyModel {
protected:
virtual bool lessThan(const QModelIndex &source_left, const QModelIndex &source_right) const;
+ virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const;
};