| 64 | |
| 65 | |
| 66 | QModelIndex ProcessListModel::index(int row, int column, const QModelIndex&) const |
| 67 | { |
| 68 | if (row < 0 || (size_t)row >= m_items.size() || column >= columnCount()) |
| 69 | { |
| 70 | return QModelIndex(); |
| 71 | } |
| 72 | |
| 73 | return createIndex(row, column, (void*)&m_items[row]); |
| 74 | } |
| 75 | |
| 76 | |
| 77 | QVariant ProcessListModel::data(const QModelIndex& index, int role) const |