Go to the documentation of this file.
27 #include <QSortFilterProxyModel>
42 public QSortFilterProxyModel
46 using FilterFunc = std::function<bool(QAbstractItemModel*,
int,
const QModelIndex&)>;
55 static bool containsAll(
const QString& text,
const QStringList& searchParts);
58 bool filterAcceptsRow(
int source_row,
const QModelIndex& source_parent)
const override;
59 bool filterAcceptsRow(
int source_row,
const QModelIndex& source_parent,
bool considerParents)
const;
std::function< bool(QAbstractItemModel *, int, const QModelIndex &)> FilterFunc
void addCustomFilter(FilterFunc function)
static void ExpandFilterResults(QTreeView *treeView)
Expands the treeview that all items that match the filterstring are expanded and directly visible.
InfixFilterModel(QObject *parent=0)
This proxy model reimplements the filterAcceptsRow function with a new behavior: All elements that fi...
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override
std::vector< FilterFunc > customFilters
static bool containsAll(const QString &text, const QStringList &searchParts)
This file offers overloads of toIce() and fromIce() functions for STL container types.