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

Method createToolView

kdevplatform/shell/ktexteditorpluginintegration.cpp:534–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532}
533
534QWidget *MainWindow::createToolView(KTextEditor::Plugin* plugin, const QString &identifier,
535 KTextEditor::MainWindow::ToolViewPosition pos,
536 const QIcon &icon, const QString &text)
537{
538 auto factory = new ToolViewFactory(text, icon, identifier, pos);
539 Core::self()->uiController()->addToolView(text, factory);
540 connect(plugin, &QObject::destroyed, this, [=] {
541 Core::self()->uiController()->removeToolView(factory);
542 });
543 return factory->container();
544}
545
546KXMLGUIFactory *MainWindow::guiFactory() const
547{

Callers 1

testMainWindowMethod · 0.80

Calls 3

uiControllerMethod · 0.80
addToolViewMethod · 0.45
removeToolViewMethod · 0.45

Tested by 1

testMainWindowMethod · 0.64