Go to the documentation of this file.
29 #include <QSortFilterProxyModel>
46 using FilterFunc = std::function<bool(QAbstractItemModel*,
int,
const QModelIndex&)>;
55 static bool containsAll(
const QString& text,
const QStringList& searchParts);
59 bool filterAcceptsRow(
int source_row,
const QModelIndex& source_parent)
const override;
61 const QModelIndex& source_parent,
62 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.