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

Function toKteWrapper

kdevplatform/shell/ktexteditorpluginintegration.cpp:105–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105KTextEditor::MainWindow *toKteWrapper(KParts::MainWindow *window)
106{
107 if (auto mainWindow = qobject_cast<KDevelop::MainWindow*>(window)) {
108 return mainWindow->kateWrapper() ? mainWindow->kateWrapper()->interface() : nullptr;
109 } else {
110 return nullptr;
111 }
112}
113
114KTextEditor::View *toKteView(Sublime::View *view)
115{

Callers 1

activeMainWindowMethod · 0.85

Calls 2

kateWrapperMethod · 0.45
interfaceMethod · 0.45

Tested by

no test coverage detected