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

Method flags

ui/tools/metaobjectbrowser/metaobjecttreeclientproxymodel.cpp:155–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155Qt::ItemFlags MetaObjectTreeClientProxyModel::flags(const QModelIndex &index) const
156{
157 auto f = QIdentityProxyModel::flags(index);
158 if (index.isValid()) {
159 const auto idx = index.sibling(index.row(), QMetaObjectModel::ObjectInclusiveAliveCountColumn);
160 const auto invalid = idx.data(QMetaObjectModel::MetaObjectInvalid).toBool();
161 if (invalid)
162 f &= ~Qt::ItemIsEnabled;
163 }
164 return f;
165}
166
167void MetaObjectTreeClientProxyModel::findQObjectIndex()
168{

Callers

nothing calls this directly

Calls 3

rowMethod · 0.80
isValidMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected