| 63 | } |
| 64 | |
| 65 | void FrameStackModel::setThreads(const QVector<ThreadItem>& threads) |
| 66 | { |
| 67 | Q_D(FrameStackModel); |
| 68 | |
| 69 | qCDebug(DEBUGGER) << threads.count(); |
| 70 | |
| 71 | if (!d->m_threads.isEmpty()) { |
| 72 | beginRemoveRows(QModelIndex(), 0, d->m_threads.count()-1); |
| 73 | d->m_threads.clear(); |
| 74 | endRemoveRows(); |
| 75 | } |
| 76 | |
| 77 | if (!threads.isEmpty()) { |
| 78 | beginInsertRows(QModelIndex(), 0, threads.count()-1); |
| 79 | d->m_threads = threads; |
| 80 | endInsertRows(); |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | QModelIndex FrameStackModelPrivate::indexForThreadNumber(int threadNumber) |
| 85 | { |
nothing calls this directly
no test coverage detected