MCPcopy Create free account
hub / github.com/MITK/MITK / filterAcceptsRow

Method filterAcceptsRow

Modules/QtWidgets/src/QmitkDataStorageFilterProxyModel.cpp:62–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62bool QmitkDataStorageFilterProxyModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const
63{
64 QmitkDataStorageTreeModel *model = dynamic_cast<QmitkDataStorageTreeModel *>(this->sourceModel());
65 assert(model);
66
67 QModelIndex index0 = sourceModel()->index(sourceRow, 0, sourceParent);
68
69 for (FilterPredicatesCollection::const_iterator iter = m_Predicates.begin(); iter != m_Predicates.end(); ++iter)
70 {
71 if ((*iter)->CheckNode(model->GetNode(index0)))
72 {
73 return false;
74 }
75 }
76
77 return true;
78}

Callers

nothing calls this directly

Calls 5

indexMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
CheckNodeMethod · 0.45
GetNodeMethod · 0.45

Tested by

no test coverage detected