| 306 | } |
| 307 | |
| 308 | bool VarTableSortFilterModel::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const { |
| 309 | if (typeFilter < 0) { |
| 310 | return true; |
| 311 | } |
| 312 | calc_var_t var = sourceModel()->index(source_row, VarTableModel::VAR_NAME_COL, source_parent).data(Qt::UserRole).value<calc_var_t>(); |
| 313 | return calc_var_normalized_type(var.type) == typeFilter; |
| 314 | } |
nothing calls this directly
no test coverage detected