! \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
| 3853 | the old layout must be done additionally. |
| 3854 | */ |
| 3855 | void 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 |
nothing calls this directly
no test coverage detected