| 505 | } |
| 506 | |
| 507 | void 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 | |
| 519 | void Controller::showWidgetAtPosition(const QString &name, Position pos, bool replace) |
| 520 | { |
no test coverage detected