| 191 | } |
| 192 | |
| 193 | QModelIndex NetworkReplyModel::parent(const QModelIndex &child) const |
| 194 | { |
| 195 | if (child.internalId() == TopIndex) { |
| 196 | return {}; |
| 197 | } |
| 198 | |
| 199 | return createIndex(child.internalId(), 0, TopIndex); |
| 200 | } |
| 201 | |
| 202 | void NetworkReplyModel::objectCreated(QObject *obj) |
| 203 | { |