MCPcopy Create free account
hub / github.com/Vector35/debugger / filterAcceptsRow

Method filterAcceptsRow

ui/moduleswidget.cpp:708–722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706
707
708bool DebugModulesFilterProxyModel::filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const
709{
710 QRegularExpression regExp = filterRegularExpression();
711 if (!regExp.isValid())
712 return true;
713
714 for (int column = 0; column < sourceModel()->columnCount(sourceParent); column++)
715 {
716 QModelIndex index = sourceModel()->index(sourceRow, column, sourceParent);
717 QString data = index.data(SortFilterRole).toString();
718 if (data.indexOf(regExp) != -1)
719 return true;
720 }
721 return false;
722}

Callers

nothing calls this directly

Calls 3

columnCountMethod · 0.45
indexMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected