MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / disableBreakpoints

Method disableBreakpoints

src/plugins/debugger/interface/breakpointview.cpp:117–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void BreakpointView::disableBreakpoints(const QModelIndexList &rows)
118{
119 BreakpointModel *bpModel = static_cast<BreakpointModel *>(model());
120 QStringList openedFiles = editService->openedFiles();
121 for (auto row : rows) {
122 auto bp = bpModel->BreakpointAt(row.row());
123 if (openedFiles.contains(bp.filePath))
124 editor.setBreakpointEnabled(bp.filePath, bp.lineNumber - 1, false);
125 else
126 editor.breakpointStatusChanged(bp.filePath, bp.lineNumber - 1, false);
127 }
128}
129
130void BreakpointView::removeBreakpoints(const QModelIndexList &rows)
131{

Callers

nothing calls this directly

Calls 5

modelClass · 0.85
rowMethod · 0.80
openedFilesMethod · 0.45
containsMethod · 0.45
setBreakpointEnabledMethod · 0.45

Tested by

no test coverage detected