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

Method currentThreadIndex

kdevplatform/debugger/framestack/framestackmodel.cpp:355–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355QModelIndex FrameStackModel::currentThreadIndex() const
356{
357 Q_D(const FrameStackModel);
358
359 int i = 0;
360 for (const ThreadItem& t : std::as_const(d->m_threads)) {
361 if (t.nr == currentThread()) {
362 return index(i, 0);
363 }
364 ++i;
365 }
366 return QModelIndex();
367}
368
369int FrameStackModel::currentFrame() const
370{

Callers 1

currentThreadChangedMethod · 0.80

Calls 2

QModelIndexClass · 0.70
indexFunction · 0.50

Tested by

no test coverage detected