This proxy model reimplements the filterAcceptsRow function with a new behavior: All elements that fit the filter string are shown alongside with all their parents as well as all their children.
More...
#include <ArmarXGui/libraries/ArmarXGuiBase/widgets/InfixFilterModel.h>
|
using | FilterFunc = std::function< bool(QAbstractItemModel *, int, const QModelIndex &)> |
|
|
static bool | containsAll (const QString &text, const QStringList &searchParts) |
|
static void | ExpandFilterResults (QTreeView *treeView) |
| Expands the treeview that all items that match the filterstring are expanded and directly visible. More...
|
|
|
bool | filterAcceptsRow (int source_row, const QModelIndex &source_parent) const override |
|
bool | filterAcceptsRow (int source_row, const QModelIndex &source_parent, bool considerParents) const |
|
This proxy model reimplements the filterAcceptsRow function with a new behavior: All elements that fit the filter string are shown alongside with all their parents as well as all their children.
This means the full sub-tree which contains matching elements is shown.
Definition at line 41 of file InfixFilterModel.h.
◆ FilterFunc
using FilterFunc = std::function<bool(QAbstractItemModel*, int, const QModelIndex&)> |
◆ InfixFilterModel()
◆ addCustomFilter()
◆ containsAll()
bool containsAll |
( |
const QString & |
text, |
|
|
const QStringList & |
searchParts |
|
) |
| |
|
static |
◆ ExpandFilterResults()
void ExpandFilterResults |
( |
QTreeView * |
treeView | ) |
|
|
static |
Expands the treeview that all items that match the filterstring are expanded and directly visible.
Anything else is collapsed.
- Parameters
-
Definition at line 63 of file InfixFilterModel.cpp.
◆ filterAcceptsRow() [1/2]
bool filterAcceptsRow |
( |
int |
source_row, |
|
|
const QModelIndex & |
source_parent |
|
) |
| const |
|
overrideprotected |
◆ filterAcceptsRow() [2/2]
bool filterAcceptsRow |
( |
int |
source_row, |
|
|
const QModelIndex & |
source_parent, |
|
|
bool |
considerParents |
|
) |
| const |
|
protected |
◆ customFilters
The documentation for this class was generated from the following files: