[Development] QMargins (was: Re: Qt 5.2 header diff: QtCore)

Marc Mutz marc.mutz at kdab.com
Tue Nov 5 12:05:13 CET 2013


On Tuesday, November 05, 2013 01:07:32 Thiago Macieira wrote:
> +++ b/src/corelib/tools/qmargins.h
> @@ -242,6 +242,24 @@ inline QMargins &QMargins::operator-=(const QMargins
> &margins) return *this = *this - margins;
>  }
>  
> +inline QMargins &QMargins::operator+=(int margin)
> +{
> +    m_left += margin;
> +    m_top += margin;
> +    m_right += margin;
> +    m_bottom += margin;
> +    return *this;
> +}
> +
> +inline QMargins &QMargins::operator-=(int margin)
> +{
> +    m_left -= margin;
> +    m_top -= margin;
> +    m_right -= margin;
> +    m_bottom -= margin;
> +    return *this;
> +}

This just adds missing implementation, it's rediculous not to backport to 5.1, 
is it?



More information about the Development mailing list