added option to hide sequences
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user