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

Method setMarkers

src/plugins/codeeditor/gui/private/texteditor_p.cpp:545–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543}
544
545void TextEditorPrivate::setMarkers(const QMap<int, int> &maskMap)
546{
547 int totalLine = q->lines();
548 for (auto iter = maskMap.begin(); iter != maskMap.end(); ++iter) {
549 if (iter.key() >= totalLine)
550 break;
551
552 if (iter.value() & (1 << Breakpoint)) {
553 q->addBreakpoint(iter.key(), true);
554 } else if (iter.value() & (1 << BreakpointDisabled)) {
555 q->addBreakpoint(iter.key(), false);
556 }
557 }
558}
559
560QWidget *TextEditorPrivate::mainWindow()
561{

Callers 1

reloadMethod · 0.80

Calls 6

linesMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
keyMethod · 0.45
valueMethod · 0.45
addBreakpointMethod · 0.45

Tested by

no test coverage detected