| 452 | } |
| 453 | |
| 454 | QModelIndex AspectTreeModel::modelIndexOfAspect(const AbstractAspect* aspect, int column) const { |
| 455 | if (!aspect) |
| 456 | return QModelIndex(); |
| 457 | AbstractAspect* parent = aspect->parentAspect(); |
| 458 | return createIndex(parent ? parent->indexOfChild<AbstractAspect>(aspect) : 0, column, const_cast<AbstractAspect*>(aspect)); |
| 459 | } |
| 460 | |
| 461 | /*! |
| 462 | returns the model index of an aspect defined via its path. |
no test coverage detected