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

Method frameSelectionChanged

kdevplatform/debugger/framestack/framestackwidget.cpp:204–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204void FramestackWidget::frameSelectionChanged(const QModelIndex& current /* previous */)
205{
206 if (!current.isValid())
207 return;
208 IFrameStackModel::FrameItem f = m_session->frameStackModel()->frame(current);
209 /* If line is -1, then it's not a source file at all. */
210 if (f.line != -1) {
211 QPair<QUrl, int> file = m_session->convertToLocalUrl(qMakePair(f.file, f.line));
212 ICore::self()->documentController()->openDocument(file.first, KTextEditor::Cursor(file.second, 0), IDocumentController::DoNotFocus);
213 }
214
215 m_session->frameStackModel()->setCurrentFrame(f.nr);
216}
217
218void FramestackWidget::frameContextMenuRequested(const QPoint& pos)
219{

Callers

nothing calls this directly

Calls 8

documentControllerMethod · 0.80
setCurrentFrameMethod · 0.80
CursorClass · 0.50
isValidMethod · 0.45
frameMethod · 0.45
frameStackModelMethod · 0.45
convertToLocalUrlMethod · 0.45
openDocumentMethod · 0.45

Tested by

no test coverage detected