| 564 | } |
| 565 | |
| 566 | Edit::Range TabWidget::selectionRange(const QString &fileName, bool &found) |
| 567 | { |
| 568 | if (auto editor = d->findEditor(fileName)) { |
| 569 | found = true; |
| 570 | Edit::Range range; |
| 571 | editor->getSelection(&range.start.line, &range.start.column, |
| 572 | &range.end.line, &range.end.column); |
| 573 | return range; |
| 574 | } |
| 575 | |
| 576 | found = false; |
| 577 | return {}; |
| 578 | } |
| 579 | |
| 580 | void TabWidget::setText(const QString &text) |
| 581 | { |
no test coverage detected