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

Method textSelection

kdevplatform/shell/textdocument.cpp:477–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475}
476
477KTextEditor::Range TextDocument::textSelection() const
478{
479 Q_D(const TextDocument);
480
481 if (!d->document) {
482 return KTextEditor::Range::invalid();
483 }
484
485 KTextEditor::View *view = activeTextView();
486
487 if (view && view->selection()) {
488 return view->selectionRange();
489 }
490
491 return PartDocument::textSelection();
492}
493
494QString TextDocument::text(const KTextEditor::Range &range) const
495{

Callers 2

showQuickOpenWidgetMethod · 0.45
patternFromSelectionFunction · 0.45

Calls 2

invalidFunction · 0.50
selectionMethod · 0.45

Tested by

no test coverage detected