| 92 | |
| 93 | |
| 94 | QModelIndex DebugStackListModel::index(int row, int column, const QModelIndex&) const |
| 95 | { |
| 96 | if (row < 0 || (size_t)row >= m_items.size() || column >= columnCount()) |
| 97 | { |
| 98 | return QModelIndex(); |
| 99 | } |
| 100 | |
| 101 | return createIndex(row, column, (void*)&m_items[row]); |
| 102 | } |
| 103 | |
| 104 | |
| 105 | QVariant DebugStackListModel::data(const QModelIndex& index, int role) const |