MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / setOuterRect

Method setOuterRect

3rdparty/qcustomplot/qcustomplot.cpp:3240–3247  ·  view source on GitHub ↗

! Sets the outer rect of this layout element. If the layout element is inside a layout, the layout sets the position and size of this layout element using this function. Calling this function externally has no effect, since the layout will overwrite any changes to the outer rect upon the next replot. The layout element will adapt its inner \ref rect by applying the margins inward t

Source from the content-addressed store, hash-verified

3238 \see rect
3239*/
3240void QCPLayoutElement::setOuterRect(const QRect &rect)
3241{
3242 if (mOuterRect != rect)
3243 {
3244 mOuterRect = rect;
3245 mRect = mOuterRect.adjusted(mMargins.left(), mMargins.top(), -mMargins.right(), -mMargins.bottom());
3246 }
3247}
3248
3249/*!
3250 Sets the margins of this layout element. If \ref setAutoMargins is disabled for some or all

Callers 3

updateLayoutMethod · 0.80
setViewportMethod · 0.80
updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected