MCPcopy Create free account
hub / github.com/KDE/kdevelop / textLine

Method textLine

kdevplatform/shell/textdocument.cpp:506–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504}
505
506QString 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
524QString TextDocument::textWord() const
525{

Callers

nothing calls this directly

Calls 3

QStringClass · 0.70
lineMethod · 0.45
cursorPositionMethod · 0.45

Tested by

no test coverage detected