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

Method slotOpenFile

kdevplatform/debugger/breakpoint/breakpointwidget.cpp:308–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308void BreakpointWidget::slotOpenFile(const QModelIndex& breakpointIdx)
309{
310 Q_D(BreakpointWidget);
311
312 if (breakpointIdx.column() != Breakpoint::LocationColumn){
313 return;
314 }
315 Breakpoint* bp = d->debugController->breakpointModel()->breakpoint(breakpointIdx.row());
316 if (!bp || bp->line() == -1 || bp->url().isEmpty() ){
317 return;
318 }
319
320 ICore::self()->documentController()->openDocument(bp->url(), KTextEditor::Cursor(bp->line(), 0), IDocumentController::DoNotFocus);
321}
322
323void BreakpointWidget::slotDisableAllBreakpoints()
324{

Callers

nothing calls this directly

Calls 10

breakpointMethod · 0.80
documentControllerMethod · 0.80
CursorClass · 0.70
columnMethod · 0.45
breakpointModelMethod · 0.45
rowMethod · 0.45
lineMethod · 0.45
isEmptyMethod · 0.45
urlMethod · 0.45
openDocumentMethod · 0.45

Tested by

no test coverage detected