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

Method finalizeAdd

src/backend/worksheet/WorksheetElement.cpp:61–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void WorksheetElement::finalizeAdd() {
62 DEBUG(Q_FUNC_INFO)
63 Q_D(WorksheetElement);
64 if (!d->m_plot) {
65 // determine the plot parent which is not neccessarily the parent aspect like for
66 // * child CustomPoint in InfoeElement
67 // * child XYCurves in QQPlot
68 // * etc.
69 d->m_plot = dynamic_cast<CartesianPlot*>(parent(AspectType::CartesianPlot));
70 }
71
72 if (d->m_plot) {
73 cSystem = dynamic_cast<const CartesianCoordinateSystem*>(d->m_plot->coordinateSystem(m_cSystemIndex));
74 Q_EMIT plotRangeListChanged();
75 } else
76 DEBUG(Q_FUNC_INFO << ", WARNING: no plot available.")
77}
78
79/**
80 * \fn QGraphicsItem *WorksheetElement::graphicsItem() const

Callers 3

addChildFastMethod · 0.45
insertChildBeforeFastMethod · 0.45
undoMethod · 0.45

Calls 1

coordinateSystemMethod · 0.45

Tested by 3

addChildFastMethod · 0.36
insertChildBeforeFastMethod · 0.36
undoMethod · 0.36