MCPcopy Create free account
hub / github.com/SaschaWillems/VulkanCapsViewer / filterAcceptsRow

Method filterAcceptsRow

treeproxyfilter.cpp:29–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29bool TreeProxyFilter::filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const
30{
31 if (filterRegularExpression().isValid())
32 {
33 QModelIndex index = sourceModel()->index(sourceRow, this->filterKeyColumn(), sourceParent);
34 if (index.isValid())
35 {
36 for (int i = 0; i < sourceModel()->rowCount(index); ++i)
37 {
38 if (filterAcceptsRow(i, index))
39 {
40 return true;
41 }
42 }
43 QString key = sourceModel()->data(index, filterRole()).toString();
44 return key.contains(filterRegularExpression());
45 }
46 }
47 return QSortFilterProxyModel::filterAcceptsRow(sourceRow, sourceParent);
48}
49
50bool TreeProxyFilter::filterAcceptsRowSelf(int sourceRow, const QModelIndex &sourceParent) const
51{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected