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.
| 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. |
| 199 | bool isObjectWidgetElement(const QDomElement& element) { |
| 200 | return !element.isNull() && element.tagName() != QStringLiteral("plot"); |
| 201 | } |
| 202 | |
| 203 | class RestorePlotPool { |
| 204 | public: |
no test coverage detected