| 136 | } |
| 137 | |
| 138 | QModelIndex InstanceList::index(int row, int column, const QModelIndex& parent) const |
| 139 | { |
| 140 | Q_UNUSED(parent); |
| 141 | if (row < 0 || row >= m_instances.size()) |
| 142 | return QModelIndex(); |
| 143 | return createIndex(row, column, (void*)m_instances.at(row).get()); |
| 144 | } |
| 145 | |
| 146 | QVariant InstanceList::data(const QModelIndex& index, int role) const |
| 147 | { |
nothing calls this directly
no test coverage detected