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

Method activeTextView

kdevplatform/shell/textdocument.cpp:673–690  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671}
672
673KTextEditor::View* KDevelop::TextDocument::activeTextView() const
674{
675 KTextEditor::View* fallback = nullptr;
676 for (auto view : views()) {
677 auto textView = qobject_cast<TextView*>(view)->textView();
678 if (!textView) {
679 continue;
680 }
681 if (textView->hasFocus()) {
682 return textView;
683 } else if (textView->isVisible()) {
684 fallback = textView;
685 } else if (!fallback) {
686 fallback = textView;
687 }
688 }
689 return fallback;
690}
691
692void KDevelop::TextDocument::newDocumentStatus(KTextEditor::Document *document)
693{

Callers 9

beautifySourceMethod · 0.45
beautifyLineMethod · 0.45
openDocumentInternalMethod · 0.45
annotationMethod · 0.45
documentActivatedMethod · 0.45
seekHunkMethod · 0.45
openMethod · 0.45

Calls 1

textViewMethod · 0.80

Tested by

no test coverage detected