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

Method adoptObjectWidget

pj_plotting/widget/src/DockWidget.cpp:244–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244void DockWidget::adoptObjectWidget(IDataWidget* widget) {
245 if (widget == nullptr) {
246 // Build failed (unknown kind / factory refusal): keep a usable placeholder.
247 setPlaceholderWidget();
248 return;
249 }
250 setObjectWidget(widget);
251 // setObjectWidget cleared the gate via clearCurrentContent; arm it now so the
252 // first topic dropped into this empty widget seeds streaming playback.
253 object_widget_awaiting_first_topic_ = true;
254 setName(QStringLiteral("..."));
255 emit undoableChange();
256 focusSelf();
257}
258
259DockToolbar* DockWidget::toolBar() {
260 return toolbar_;

Callers 2

TESTFunction · 0.80

Calls 1

setNameFunction · 0.85

Tested by 1

TESTFunction · 0.64