MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / setConfigWidget

Method setConfigWidget

pj_widgets/src/ConfigPanelHost.cpp:16–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16void ConfigPanelHost::setConfigWidget(QWidget* widget) {
17 if (current_widget_ == widget) {
18 return;
19 }
20 clear();
21 if (widget == nullptr) {
22 return;
23 }
24 widget->setParent(this);
25 layout_->addWidget(widget);
26 current_widget_ = widget;
27}
28
29void ConfigPanelHost::clear() {
30 if (current_widget_ == nullptr) {

Callers 4

TESTFunction · 0.80
updateConfigPaneMethod · 0.80
showRobotLayerConfigMethod · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64