MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / sizeConstraintsChanged

Method sizeConstraintsChanged

3rdparty/qcustomplot/qcustomplot.cpp:3794–3800  ·  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

3792 it may update itself and resize cells accordingly.
3793*/
3794void 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

Callers 3

setMinimumSizeMethod · 0.80
setMaximumSizeMethod · 0.80
setSizeConstraintRectMethod · 0.80

Calls 1

updateGeometryMethod · 0.80

Tested by

no test coverage detected