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

Function findToolView

kdevplatform/shell/tests/test_ktexteditorpluginintegration.cpp:35–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35IToolViewFactory *findToolView(const QString &id)
36{
37 const auto uiController = Core::self()->uiControllerInternal();
38 const auto map = uiController->factoryDocuments();
39 for (auto it = map.begin(); it != map.end(); ++it) {
40 if (it.key()->id() == id) {
41 return it.key();
42 }
43 }
44 return nullptr;
45}
46
47class TestPlugin : public KTextEditor::Plugin
48{

Callers 2

findToolViewMethod · 0.85
testMainWindowMethod · 0.85

Calls 5

uiControllerInternalMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
idMethod · 0.45
keyMethod · 0.45

Tested by

no test coverage detected