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

Method releaseElement

qcustomplot/qcustomplot.cpp:3829–3839  ·  view source on GitHub ↗

! \internal Disassociates \a el from this layout. This is done by setting the \ref QCPLayoutElement::layout and the \ref QCPLayerable::parentLayerable to zero. The QObject parent is set to the parent QCustomPlot. This method is used by subclass specific methods that remove elements from the layout (e.g. \ref take or \ref takeAt). Note that this method only changes properties in \a

Source from the content-addressed store, hash-verified

3827 the old layout must be done additionally.
3828*/
3829void QCPLayout::releaseElement(QCPLayoutElement *el)
3830{
3831 if (el)
3832 {
3833 el->mParentLayout = 0;
3834 el->setParentLayerable(0);
3835 el->setParent(mParentPlot);
3836 // Note: Don't initializeParentPlot(0) here, because layout element will stay in same parent plot
3837 } else
3838 qDebug() << Q_FUNC_INFO << "Null element passed";
3839}
3840
3841/*! \internal
3842

Callers

nothing calls this directly

Calls 1

setParentLayerableMethod · 0.80

Tested by

no test coverage detected