| 101 | |
| 102 | |
| 103 | QModelIndex DebugRegistersListModel::index(int row, int column, const QModelIndex&) const |
| 104 | { |
| 105 | if (row < 0 || (size_t)row >= m_items.size() || column >= columnCount()) |
| 106 | { |
| 107 | return QModelIndex(); |
| 108 | } |
| 109 | |
| 110 | return createIndex(row, column, (void*)&m_items[row]); |
| 111 | } |
| 112 | |
| 113 | |
| 114 | QVariant DebugRegistersListModel::data(const QModelIndex& index, int role) const |