MCPcopy Create free account
hub / github.com/KDE/labplot / showPreview

Method showPreview

src/frontend/PlotTemplateDialog.cpp:223–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223void PlotTemplateDialog::showPreview() {
224 for (auto* plot : m_worksheet->children<CartesianPlot>())
225 m_worksheet->removeChild(plot);
226
227 auto* plot = generatePlot();
228 if (plot) {
229 m_worksheet->addChild(plot);
230 updateErrorMessage(QLatin1String("")); // hide error text edit
231 }
232}
233
234void PlotTemplateDialog::updateErrorMessage(const QString& message) {
235 if (message.isEmpty()) {

Callers

nothing calls this directly

Calls 2

removeChildMethod · 0.45
addChildMethod · 0.45

Tested by

no test coverage detected