MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / registerWidgetCreator

Method registerWidgetCreator

src/plugins/core/uicontroller/controller.cpp:507–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505}
506
507void Controller::registerWidgetCreator(const QString &name, std::function<AbstractWidget *()> &widgetCreateFunc)
508{
509 if (d->allWidgets.contains(name))
510 return;
511
512 WidgetInfo widgetInfo;
513 widgetInfo.name = name;
514 widgetInfo.createDWidgetFunc = widgetCreateFunc;
515
516 d->allWidgets.insert(name, widgetInfo);
517}
518
519void Controller::showWidgetAtPosition(const QString &name, Position pos, bool replace)
520{

Callers 4

startMethod · 0.80
initializeMethod · 0.80
startMethod · 0.80
registerToSidebarMethod · 0.80

Calls 2

insertMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected