MCPcopy Create free account
hub / github.com/KDE/kdevelop / setThreads

Method setThreads

kdevplatform/debugger/framestack/framestackmodel.cpp:65–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void 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
84QModelIndex FrameStackModelPrivate::indexForThreadNumber(int threadNumber)
85{

Callers

nothing calls this directly

Calls 4

QModelIndexClass · 0.70
countMethod · 0.45
isEmptyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected