| 269 | } |
| 270 | |
| 271 | QModelIndex FrameStackModel::index(int row, int column, const QModelIndex& parent) const |
| 272 | { |
| 273 | Q_D(const FrameStackModel); |
| 274 | |
| 275 | if (parent.isValid()) { |
| 276 | Q_ASSERT(!parent.internalId()); |
| 277 | Q_ASSERT(parent.column() == 0); |
| 278 | Q_ASSERT(parent.row() < d->m_threads.count()); |
| 279 | return createIndex(row, column, parent.row()+1); |
| 280 | } else { |
| 281 | return createIndex(row, column); |
| 282 | } |
| 283 | } |
| 284 | |
| 285 | |
| 286 | QVariant FrameStackModel::headerData(int section, Qt::Orientation orientation, int role) const |
no test coverage detected