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

Method objectWidgetClipboardTag

pj_plotting/widget/src/DockWidget.cpp:561–568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559}
560
561QString DockWidget::objectWidgetClipboardTag() const {
562 if (object_widget_ == nullptr) {
563 return {};
564 }
565 QDomDocument doc(QStringLiteral("plotjuggler_widget"));
566 const QDomElement element = object_widget_->xmlSaveState(doc);
567 return element.isNull() ? QString() : element.tagName();
568}
569
570void DockWidget::copyObjectWidgetToClipboard() {
571 if (object_widget_ == nullptr) {

Callers

nothing calls this directly

Calls 3

QStringClass · 0.50
xmlSaveStateMethod · 0.45
isNullMethod · 0.45

Tested by

no test coverage detected