| 75 | |
| 76 | |
| 77 | QModelIndex DebugBreakpointsListModel::index(int row, int column, const QModelIndex&) const |
| 78 | { |
| 79 | if (row < 0 || (size_t)row >= m_items.size() || column >= columnCount()) |
| 80 | { |
| 81 | return QModelIndex(); |
| 82 | } |
| 83 | |
| 84 | return createIndex(row, column, (void*)&m_items[row]); |
| 85 | } |
| 86 | |
| 87 | |
| 88 | QVariant DebugBreakpointsListModel::data(const QModelIndex& index, int role) const |