! \internal Sets the parent plot of this layerable. Use this function once to set the parent plot if you have passed \c nullptr in the constructor. It can not be used to move a layerable from one QCustomPlot to another one. Note that, unlike when passing a non \c nullptr parent plot in the constructor, this function does not make \a parentPlot the QObject-parent of this layerable.
| 1526 | QCPLayout does). |
| 1527 | */ |
| 1528 | void QCPLayerable::initializeParentPlot(QCustomPlot *parentPlot) |
| 1529 | { |
| 1530 | if (mParentPlot) |
| 1531 | { |
| 1532 | qDebug() << Q_FUNC_INFO << "called with mParentPlot already initialized"; |
| 1533 | return; |
| 1534 | } |
| 1535 | |
| 1536 | if (!parentPlot) |
| 1537 | qDebug() << Q_FUNC_INFO << "called with parentPlot zero"; |
| 1538 | |
| 1539 | mParentPlot = parentPlot; |
| 1540 | parentPlotInitialized(mParentPlot); |
| 1541 | } |
| 1542 | |
| 1543 | /*! \internal |
| 1544 |
no outgoing calls
no test coverage detected