| 706 | |
| 707 | |
| 708 | bool 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 | } |
nothing calls this directly
no test coverage detected