| 82 | } |
| 83 | |
| 84 | QModelIndex FrameStackModelPrivate::indexForThreadNumber(int threadNumber) |
| 85 | { |
| 86 | int i=0; |
| 87 | for (const auto& t : std::as_const(m_threads)) { |
| 88 | if (t.nr == threadNumber) { |
| 89 | return q->index(i, 0); |
| 90 | } |
| 91 | i++; |
| 92 | } |
| 93 | return QModelIndex(); |
| 94 | } |
| 95 | |
| 96 | void FrameStackModel::setFrames(int threadNumber, const QVector<FrameItem>& frames) |
| 97 | { |
no test coverage detected