Olive
project
projectfilter.h
1
#ifndef PROJECTFILTER_H
2
#define PROJECTFILTER_H
3
4
#include <QSortFilterProxyModel>
5
6
class
ProjectFilter
:
public
QSortFilterProxyModel {
7
Q_OBJECT
8
public
:
9
ProjectFilter
(QObject *parent =
nullptr
);
10
11
// are sequences visible
12
bool
get_show_sequences();
13
14
public
slots:
15
16
// set whether sequences are visible
17
void
set_show_sequences(
bool
b);
18
19
// update search filter
20
void
update_search_filter(
const
QString& s);
21
22
protected
:
23
24
// function that filters whether rows are displayed or not
25
virtual
bool
filterAcceptsRow(
int
source_row,
const
QModelIndex &source_parent)
const
;
26
27
private
:
28
29
// internal variable for whether to show sequences
30
bool
show_sequences;
31
32
// search filter variable
33
QString search_filter;
34
35
};
36
37
#endif // PROJECTFILTER_H
ProjectFilter
Definition:
projectfilter.h:6
Generated by
1.8.15