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

Method filterAcceptsRow

ui/attachprocess.cpp:235–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233
234
235bool ProcessListFilterProxyModel::filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const
236{
237 QRegularExpression regExp = filterRegularExpression();
238 if (!regExp.isValid())
239 return true;
240
241 for (int column = 0; column < sourceModel()->columnCount(sourceParent); column++)
242 {
243 QModelIndex index = sourceModel()->index(sourceRow, column, sourceParent);
244 QString data = index.data(SortFilterRole).toString();
245 if (data.indexOf(regExp) != -1)
246 return true;
247 }
248 return false;
249}
250
251
252void ProcessListWidget::contextMenuEvent(QContextMenuEvent* event)

Callers

nothing calls this directly

Calls 3

columnCountMethod · 0.45
indexMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected