! Subclasses call this method to report changed (minimum/maximum) size constraints. If the parent of this layout is again a QCPLayout, forwards the call to the parent's \ref sizeConstraintsChanged. If the parent is a QWidget (i.e. is the \ref QCustomPlot::plotLayout of QCustomPlot), calls QWidget::updateGeometry, so if the QCustomPlot widget is inside a Qt QLayout, it may update itsel
| 3792 | it may update itself and resize cells accordingly. |
| 3793 | */ |
| 3794 | void QCPLayout::sizeConstraintsChanged() const |
| 3795 | { |
| 3796 | if (QWidget *w = qobject_cast<QWidget*>(parent())) |
| 3797 | w->updateGeometry(); |
| 3798 | else if (QCPLayout *l = qobject_cast<QCPLayout*>(parent())) |
| 3799 | l->sizeConstraintsChanged(); |
| 3800 | } |
| 3801 | |
| 3802 | /*! \internal |
| 3803 |
no test coverage detected