| 543 | } |
| 544 | |
| 545 | void 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 | |
| 560 | QWidget *TextEditorPrivate::mainWindow() |
| 561 | { |