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

Method currentThreadChanged

kdevplatform/debugger/framestack/framestackwidget.cpp:176–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void FramestackWidget::currentThreadChanged(int thread)
177{
178 if (thread != -1) {
179 IFrameStackModel* model = m_session->frameStackModel();
180 QModelIndex idx = model->currentThreadIndex();
181 m_threadsListView->selectionModel()->select(idx, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows);
182 m_threadsWidget->setVisible(model->rowCount() > 1);
183 m_framesTreeView->setRootIndex(idx);
184 m_framesTreeView->header()->setSectionResizeMode(0, QHeaderView::ResizeToContents);
185 } else {
186 m_threadsWidget->hide();
187 m_threadsListView->selectionModel()->clear();
188 m_framesTreeView->setRootIndex(QModelIndex());
189 }
190}
191
192void FramestackWidget::currentFrameChanged(int frame)
193{

Callers

nothing calls this directly

Calls 9

currentThreadIndexMethod · 0.80
selectMethod · 0.80
setRootIndexMethod · 0.80
headerMethod · 0.80
QModelIndexClass · 0.70
frameStackModelMethod · 0.45
setVisibleMethod · 0.45
rowCountMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected