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

Method setTextSelection

kdevplatform/shell/textdocument.cpp:561–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559}
560
561void TextDocument::setTextSelection(const KTextEditor::Range &range)
562{
563 Q_D(TextDocument);
564
565 if (!range.isValid() || !d->document)
566 return;
567
568 KTextEditor::View *view = activeTextView();
569
570 if (view) {
571 selectAndReveal(view, range);
572 }
573}
574
575Sublime::View* TextDocument::newView(Sublime::Document* doc)
576{

Callers

nothing calls this directly

Calls 2

selectAndRevealFunction · 0.85
isValidMethod · 0.45

Tested by

no test coverage detected