| 504 | } |
| 505 | |
| 506 | QString TextDocument::textLine() const |
| 507 | { |
| 508 | VERIFY_FOREGROUND_LOCKED |
| 509 | Q_D(const TextDocument); |
| 510 | |
| 511 | if (!d->document) { |
| 512 | return QString(); |
| 513 | } |
| 514 | |
| 515 | KTextEditor::View *view = activeTextView(); |
| 516 | |
| 517 | if (view) { |
| 518 | return d->document->line( view->cursorPosition().line() ); |
| 519 | } |
| 520 | |
| 521 | return PartDocument::textLine(); |
| 522 | } |
| 523 | |
| 524 | QString TextDocument::textWord() const |
| 525 | { |
nothing calls this directly
no test coverage detected