MCPcopy Create free account
hub / github.com/LUX-Core/lux / sizeConstraintsChanged

Method sizeConstraintsChanged

src/qt/qcustomplot.cpp:3762–3768  ·  view source on GitHub ↗

! 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

Source from the content-addressed store, hash-verified

3760 it may update itself and resize cells accordingly.
3761*/
3762void 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

Callers 3

setMinimumSizeMethod · 0.80
setMaximumSizeMethod · 0.80
setSizeConstraintRectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected