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

Method setMargins

3rdparty/qcustomplot/qcustomplot.cpp:3260–3267  ·  view source on GitHub ↗

! Sets the margins of this layout element. If \ref setAutoMargins is disabled for some or all sides, this function is used to manually set the margin on those sides. Sides that are still set to be handled automatically are ignored and may have any value in \a margins. The margin is the distance between the outer rect (controlled by the parent layout via \ref setOuterRect) and the inne

Source from the content-addressed store, hash-verified

3258 \see setAutoMargins
3259*/
3260void QCPLayoutElement::setMargins(const QMargins &margins)
3261{
3262 if (mMargins != margins)
3263 {
3264 mMargins = margins;
3265 mRect = mOuterRect.adjusted(mMargins.left(), mMargins.top(), -mMargins.right(), -mMargins.bottom());
3266 }
3267}
3268
3269/*!
3270 If \ref setAutoMargins is enabled on some or all margins, this function is used to provide

Callers 2

QCustomPlotMethod · 0.80
savePdfMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected