MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / filterAcceptsRow

Method filterAcceptsRow

gui/qt/vartablemodel.cpp:308–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308bool 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}

Callers

nothing calls this directly

Calls 2

calc_var_normalized_typeFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected