! 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
| 3258 | \see setAutoMargins |
| 3259 | */ |
| 3260 | void 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 |
no outgoing calls
no test coverage detected