2015-04-22 19:30:09 +02:00
|
|
|
#ifndef ENTRYFILTERMODEL_H
|
|
|
|
#define ENTRYFILTERMODEL_H
|
|
|
|
|
|
|
|
#include <QSortFilterProxyModel>
|
|
|
|
|
|
|
|
namespace QtGui {
|
|
|
|
|
2017-05-01 03:26:04 +02:00
|
|
|
class EntryFilterModel : public QSortFilterProxyModel {
|
2015-04-22 19:30:09 +02:00
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit EntryFilterModel(QObject *parent = nullptr);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
|
2016-03-15 15:33:13 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
bool hasAcceptedChildren(const QModelIndex &index) const;
|
2015-04-22 19:30:09 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // ENTRYFILTERMODEL_H
|