! \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
| 1498 | QCPLayout does). |
| 1499 | */ |
| 1500 | void QCPLayerable::initializeParentPlot(QCustomPlot *parentPlot) |
| 1501 | { |
| 1502 | if (mParentPlot) |
| 1503 | { |
| 1504 | qDebug() << Q_FUNC_INFO << "called with mParentPlot already initialized"; |
| 1505 | return; |
| 1506 | } |
| 1507 | |
| 1508 | if (!parentPlot) |
| 1509 | qDebug() << Q_FUNC_INFO << "called with parentPlot zero"; |
| 1510 | |
| 1511 | mParentPlot = parentPlot; |
| 1512 | parentPlotInitialized(mParentPlot); |
| 1513 | } |
| 1514 | |
| 1515 | /*! \internal |
| 1516 |
no outgoing calls
no test coverage detected