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

Method insertWidget

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

Source from the content-addressed store, hash-verified

427}
428
429void Controller::insertWidget(const QString &name, Position pos, Qt::Orientation orientation)
430{
431 if (!d->allWidgets.contains(name)) {
432 qWarning() << "no widget named:" << name;
433 return;
434 }
435
436 auto &info = d->allWidgets[name];
437 if (!info.created) {
438 auto dock = d->mainWindow->addWidget(name, info.getDWidget(), pos, orientation);
439 info.dockWidget = dock;
440 info.created = true;
441 info.replace = false;
442 } else {
443 d->mainWindow->showWidget(name);
444 }
445}
446
447void Controller::hideWidget(const QString &name)
448{

Callers 15

HistoryWidgetMethod · 0.80
MergeWidgetMethod · 0.80
IssueDetailedViewMethod · 0.80
addCollapseWidgetMethod · 0.80
addWidgetMethod · 0.80
insertPropertyPanelMethod · 0.80
addWidgetMethod · 0.80
addWidgetToTopToolMethod · 0.80
addTopToolBarMethod · 0.80
initStackWidgetMethod · 0.80
onMessageUpdateMethod · 0.80
waitForAnswerMethod · 0.80

Calls 3

showWidgetMethod · 0.80
containsMethod · 0.45
addWidgetMethod · 0.45

Tested by

no test coverage detected