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

Method currentFrameChanged

kdevplatform/debugger/framestack/framestackwidget.cpp:192–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192void FramestackWidget::currentFrameChanged(int frame)
193{
194 if (frame != -1) {
195 IFrameStackModel* model = m_session->frameStackModel();
196 QModelIndex idx = model->currentFrameIndex();
197 m_framesTreeView->selectionModel()->select(
198 idx, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows);
199 } else {
200 m_framesTreeView->selectionModel()->clear();
201 }
202}
203
204void FramestackWidget::frameSelectionChanged(const QModelIndex& current /* previous */)
205{

Callers

nothing calls this directly

Calls 4

currentFrameIndexMethod · 0.80
selectMethod · 0.80
frameStackModelMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected