| 233 | |
| 234 | |
| 235 | bool 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 | |
| 252 | void ProcessListWidget::contextMenuEvent(QContextMenuEvent* event) |
nothing calls this directly
no test coverage detected