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

Function isObjectWidgetElement

pj_plotting/widget/src/PlotDocker.cpp:199–201  ·  view source on GitHub ↗

A dock's content element is an object widget (Scene3DDockWidget, Scene2DDockWidget, …) when it is present and is not the PlotWidget's own element. Restore hands its tagName() to the object-widget factory as the "kind", so pj_plotting stays agnostic to specific scene families.

Source from the content-addressed store, hash-verified

197// <plot> element. Restore hands its tagName() to the object-widget factory as
198// the "kind", so pj_plotting stays agnostic to specific scene families.
199bool isObjectWidgetElement(const QDomElement& element) {
200 return !element.isNull() && element.tagName() != QStringLiteral("plot");
201}
202
203class RestorePlotPool {
204 public:

Callers 2

restoreNodeFunction · 0.85
xmlLoadStateMethod · 0.85

Calls 1

isNullMethod · 0.45

Tested by

no test coverage detected