MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / initializeParentPlot

Method initializeParentPlot

qcustomplot/qcustomplot.cpp:1500–1513  ·  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

1498 QCPLayout does).
1499*/
1500void 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

Callers 4

foreachFunction · 0.80
adoptElementMethod · 0.80
QCustomPlotMethod · 0.80
QCPAxisRectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected