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

Method enableBreakpoints

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

Source from the content-addressed store, hash-verified

102}
103
104void 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
117void BreakpointView::disableBreakpoints(const QModelIndexList &rows)
118{

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