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

Method setSizeConstraintRect

src/qt/qcustomplot.cpp:3341–3349  ·  view source on GitHub ↗

! Sets to which rect of a layout element the size constraints apply. Size constraints can be set via \ref setMinimumSize and \ref setMaximumSize. The outer rect (\ref outerRect) includes the margins (e.g. in the case of a QCPAxisRect the axis labels), whereas the inner rect (\ref rect) does not. \see setMinimumSize, setMaximumSize */

Source from the content-addressed store, hash-verified

3339 \see setMinimumSize, setMaximumSize
3340*/
3341void QCPLayoutElement::setSizeConstraintRect(SizeConstraintRect constraintRect)
3342{
3343 if (mSizeConstraintRect != constraintRect)
3344 {
3345 mSizeConstraintRect = constraintRect;
3346 if (mParentLayout)
3347 mParentLayout->sizeConstraintsChanged();
3348 }
3349}
3350
3351/*!
3352 Sets the margin \a group of the specified margin \a sides.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected