| 3219 | } |
| 3220 | |
| 3221 | QCPLayoutElement::~QCPLayoutElement() |
| 3222 | { |
| 3223 | setMarginGroup(QCP::msAll, nullptr); // unregister at margin groups, if there are any |
| 3224 | // unregister at layout: |
| 3225 | if (qobject_cast<QCPLayout*>(mParentLayout)) // the qobject_cast is just a safeguard in case the layout forgets to call clear() in its dtor and this dtor is called by QObject dtor |
| 3226 | mParentLayout->take(this); |
| 3227 | } |
| 3228 | |
| 3229 | /*! |
| 3230 | Sets the outer rect of this layout element. If the layout element is inside a layout, the layout |