! \internal Sets the parent plot of this layerable. Use this function once to set the parent plot if you have passed 0 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-null parent plot in the constructor, this function does not make \a parentPlot the QObject-parent of this layerable. If you want thi
| 1494 | QCPLayout does). |
| 1495 | */ |
| 1496 | void QCPLayerable::initializeParentPlot(QCustomPlot *parentPlot) |
| 1497 | { |
| 1498 | if (mParentPlot) |
| 1499 | { |
| 1500 | qDebug() << Q_FUNC_INFO << "called with mParentPlot already initialized"; |
| 1501 | return; |
| 1502 | } |
| 1503 | |
| 1504 | if (!parentPlot) |
| 1505 | qDebug() << Q_FUNC_INFO << "called with parentPlot zero"; |
| 1506 | |
| 1507 | mParentPlot = parentPlot; |
| 1508 | parentPlotInitialized(mParentPlot); |
| 1509 | } |
| 1510 | |
| 1511 | /*! \internal |
| 1512 |
no outgoing calls
no test coverage detected