| 1093 | } |
| 1094 | |
| 1095 | void PlotWidget::pasteWidgetFromClipboard() { |
| 1096 | QDomDocument doc; |
| 1097 | if (!widget_clipboard::parse(doc, QStringLiteral("plot"))) { |
| 1098 | return; |
| 1099 | } |
| 1100 | QDomElement plot_element = doc.documentElement(); |
| 1101 | plot_element.setAttribute(QStringLiteral("id"), state_id_); |
| 1102 | rebindClipboardCurveKeys(plot_element); |
| 1103 | if (xmlLoadState(plot_element)) { |
| 1104 | emit undoableChange(); |
| 1105 | } |
| 1106 | } |
| 1107 | |
| 1108 | bool PlotWidget::canPasteWidgetFromClipboard() const { |
| 1109 | QDomDocument doc; |
nothing calls this directly
no test coverage detected