| 3187 | } |
| 3188 | |
| 3189 | QCPLayoutElement::~QCPLayoutElement() |
| 3190 | { |
| 3191 | setMarginGroup(QCP::msAll, 0); // unregister at margin groups, if there are any |
| 3192 | // unregister at layout: |
| 3193 | 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 |
| 3194 | mParentLayout->take(this); |
| 3195 | } |
| 3196 | |
| 3197 | /*! |
| 3198 | Sets the outer rect of this layout element. If the layout element is inside a layout, the layout |