| 64 | } |
| 65 | |
| 66 | QModelIndex Widget3DWindowModel::index(int row, int column, const QModelIndex &parent) const |
| 67 | { |
| 68 | if (parent.isValid()) { |
| 69 | return QModelIndex(); |
| 70 | } |
| 71 | |
| 72 | if (row < 0 || row >= mNodes.size() || column != 0) { |
| 73 | return QModelIndex(); |
| 74 | } |
| 75 | |
| 76 | return createIndex(row, column, mNodes.at(row)); |
| 77 | } |
| 78 | |
| 79 | QModelIndex Widget3DWindowModel::parent(const QModelIndex &) const |
| 80 | { |