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