| 153 | } |
| 154 | |
| 155 | Qt::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 | |
| 167 | void MetaObjectTreeClientProxyModel::findQObjectIndex() |
| 168 | { |