| 102 | } |
| 103 | |
| 104 | void BreakpointView::enableBreakpoints(const QModelIndexList &rows) |
| 105 | { |
| 106 | BreakpointModel *bpModel = static_cast<BreakpointModel *>(model()); |
| 107 | QStringList openedFiles = editService->openedFiles(); |
| 108 | for (auto row : rows) { |
| 109 | auto bp = bpModel->BreakpointAt(row.row()); |
| 110 | if (openedFiles.contains(bp.filePath)) |
| 111 | editor.setBreakpointEnabled(bp.filePath, bp.lineNumber - 1, true); |
| 112 | else |
| 113 | editor.breakpointStatusChanged(bp.filePath, bp.lineNumber - 1, true); |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | void BreakpointView::disableBreakpoints(const QModelIndexList &rows) |
| 118 | { |
nothing calls this directly
no test coverage detected