MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / releaseElement

Method releaseElement

3rdparty/qcustomplot/qcustomplot.cpp:3855–3865  ·  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

3853 the old layout must be done additionally.
3854*/
3855void QCPLayout::releaseElement(QCPLayoutElement *el)
3856{
3857 if (el)
3858 {
3859 el->mParentLayout = nullptr;
3860 el->setParentLayerable(nullptr);
3861 el->setParent(mParentPlot);
3862 // Note: Don't initializeParentPlot(0) here, because layout element will stay in same parent plot
3863 } else
3864 qDebug() << Q_FUNC_INFO << "Null element passed";
3865}
3866
3867/*! \internal
3868

Callers

nothing calls this directly

Calls 1

setParentLayerableMethod · 0.80

Tested by

no test coverage detected