added option to hide sequences

This commit is contained in:
itsmattkc
2019-01-18 00:19:13 +11:00
parent cc7a6a12b2
commit 016a94f656
7 changed files with 85 additions and 27 deletions
+19
View File
@@ -0,0 +1,19 @@
#ifndef PROJECTFILTER_H
#define PROJECTFILTER_H
#include <QSortFilterProxyModel>
class ProjectFilter : public QSortFilterProxyModel {
Q_OBJECT
public:
ProjectFilter(QObject *parent = nullptr);
bool get_show_sequences();
public slots:
void set_show_sequences(bool b);
protected:
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const;
private:
bool show_sequences;
};
#endif // PROJECTFILTER_H