| 60 | } |
| 61 | |
| 62 | QObject *TransitionModelPrivate::mapModelIndex2QObject(const QModelIndex &index) const |
| 63 | { |
| 64 | if (index.isValid()) { |
| 65 | QObjectList c = children(reinterpret_cast<QObject *>(index.internalPointer())); |
| 66 | return c[index.row()]; |
| 67 | } |
| 68 | return m_state; |
| 69 | } |
| 70 | |
| 71 | TransitionModel::TransitionModel(QObject *parent) |
| 72 | : ObjectModelBase<QAbstractItemModel>(parent) |