| 420 | } |
| 421 | |
| 422 | void AspectTreeModel::aspectHiddenChanged(const AbstractAspect* aspect) { |
| 423 | for (auto* a = aspect->parentAspect(); a; a = a->parentAspect()) |
| 424 | if (a->isHidden()) |
| 425 | return; |
| 426 | if (aspect->isHidden()) |
| 427 | aspectRemoved(); |
| 428 | else |
| 429 | aspectAdded(aspect); |
| 430 | } |
| 431 | |
| 432 | bool AspectTreeModel::setData(const QModelIndex& index, const QVariant& value, int role) { |
| 433 | if (!index.isValid() || role != Qt::EditRole) |
nothing calls this directly
no test coverage detected