diff options
author | Arno <arno@disconnect.de> | 2025-05-02 23:51:57 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2025-05-02 23:51:57 +0200 |
commit | 88a80f8fb94ad10a9162ff340e392e79a7103fa3 (patch) | |
tree | 384bad3475df860f5b56e0b0bdfedd00732153ee /archivebrowsermodel.h | |
parent | a45737e852c207d02f1dd06227de7916baa290c1 (diff) | |
download | SheMov-88a80f8fb94ad10a9162ff340e392e79a7103fa3.tar.gz SheMov-88a80f8fb94ad10a9162ff340e392e79a7103fa3.tar.bz2 SheMov-88a80f8fb94ad10a9162ff340e392e79a7103fa3.zip |
Add exclusion genre filters to ArchiveBrowser
Don't show excluded genres in ArchiveBrowser. To make this work, revamp
the filtering login in ArchiveBrowserModelProxy.
Diffstat (limited to 'archivebrowsermodel.h')
-rw-r--r-- | archivebrowsermodel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/archivebrowsermodel.h b/archivebrowsermodel.h index 212ecea..ccf601a 100644 --- a/archivebrowsermodel.h +++ b/archivebrowsermodel.h @@ -57,6 +57,7 @@ class ArchiveBrowserModelProxy : public QSortFilterProxyModel { void setSizeFilter(int activate); void setBytesRemaining(qint64 bytes); void toggleGenre(QAction *a); + void toggleExcludedGenre(QAction *a); protected: virtual bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const; @@ -66,6 +67,7 @@ class ArchiveBrowserModelProxy : public QSortFilterProxyModel { bool mSizeFilter; qint64 mBytesRemaining; QStringList mGenreFilters; + QStringList mExcludedGenreFilters; }; #endif // ARCHIVEBROWSERMODEL_H |