| 82 | |
| 83 | |
| 84 | QModelIndex DebugModulesListModel::index(int row, int column, const QModelIndex&) const |
| 85 | { |
| 86 | if (row < 0 || (size_t)row >= m_items.size() || column >= columnCount()) |
| 87 | { |
| 88 | return QModelIndex(); |
| 89 | } |
| 90 | |
| 91 | return createIndex(row, column, (void*)&m_items[row]); |
| 92 | } |
| 93 | |
| 94 | |
| 95 | QVariant DebugModulesListModel::data(const QModelIndex& index, int role) const |