| 306 | } |
| 307 | |
| 308 | void 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 | |
| 323 | void BreakpointWidget::slotDisableAllBreakpoints() |
| 324 | { |
nothing calls this directly
no test coverage detected