MCPcopy Create free account
hub / github.com/LUX-Core/lux / initializeParentPlot

Method initializeParentPlot

src/qt/qcustomplot.cpp:1496–1509  ·  view source on GitHub ↗

! \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

Source from the content-addressed store, hash-verified

1494 QCPLayout does).
1495*/
1496void 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

Callers 4

Q_FOREACHFunction · 0.80
adoptElementMethod · 0.80
QCustomPlotMethod · 0.80
QCPAxisRectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected