MCPcopy Create free account
hub / github.com/KDAB/GammaRay / filterAcceptsRow

Method filterAcceptsRow

ui/visibilityfilterproxymodel.cpp:34–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34bool VisibilityFilterProxyModel::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
35{
36 const QModelIndex source_index = sourceModel()->index(source_row, 0, source_parent);
37 if (!source_index.isValid()) {
38 return false;
39 }
40
41 if (m_hideItems) {
42 int flags = source_index.data(m_flagRole).toInt();
43 if (flags & m_invisibleMask)
44 return false;
45 }
46
47 return QSortFilterProxyModel::filterAcceptsRow(source_row, source_parent);
48}
49
50void VisibilityFilterProxyModel::setHideItems(bool hideItems)
51{

Callers

nothing calls this directly

Calls 3

indexMethod · 0.45
isValidMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected