| 578 | } |
| 579 | |
| 580 | void TabWidget::setText(const QString &text) |
| 581 | { |
| 582 | if (auto editor = d->currentTextEditor()) { |
| 583 | int pos = editor->cursorPosition(); |
| 584 | editor->setText(text); |
| 585 | editor->gotoPosition(pos); |
| 586 | } |
| 587 | } |
| 588 | |
| 589 | QString TabWidget::fileText(const QString &fileName, bool *success) |
| 590 | { |
no test coverage detected