! 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
| 3760 | it may update itself and resize cells accordingly. |
| 3761 | */ |
| 3762 | void QCPLayout::sizeConstraintsChanged() const |
| 3763 | { |
| 3764 | if (QWidget *w = qobject_cast<QWidget*>(parent())) |
| 3765 | w->updateGeometry(); |
| 3766 | else if (QCPLayout *l = qobject_cast<QCPLayout*>(parent())) |
| 3767 | l->sizeConstraintsChanged(); |
| 3768 | } |
| 3769 | |
| 3770 | /*! \internal |
| 3771 |
no outgoing calls
no test coverage detected