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

Function toKteView

kdevplatform/shell/ktexteditorpluginintegration.cpp:114–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114KTextEditor::View *toKteView(Sublime::View *view)
115{
116 if (auto textView = qobject_cast<KDevelop::TextView*>(view)) {
117 return textView->textView();
118 } else {
119 return nullptr;
120 }
121}
122
123/**
124 * @return an IDocument that wraps a given KTextEditor::Document or @c nullptr if no matching IDocument

Callers 5

MainWindowMethod · 0.85
viewsMethod · 0.85
activeViewMethod · 0.85
closeViewMethod · 0.85
viewsInSameSplitViewMethod · 0.85

Calls 1

textViewMethod · 0.80

Tested by

no test coverage detected