| 59 | } |
| 60 | |
| 61 | void 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 |