diff options
author | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2012-12-10 16:53:16 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-07 16:11:19 +0100 |
commit | bc5a2336ab9a681411a81a53d8639b4b79f80073 (patch) | |
tree | 17961ae7f53f8f96c567f4b3cde2f4bbf774e5f2 /dist | |
parent | 6ecc3e76e822b1545bcbfa78f5caf94156a026d2 (diff) |
Provide operators for QMargins.
Provide addition/subtraction for QMargins as well as
multiplication and division for int/qreal similar
to QPoint. Add unary minus.
Change-Id: If4eb831cfd610b34b5ca361619b1636031811d0a
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Diffstat (limited to 'dist')
-rw-r--r-- | dist/changes-5.1.0 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dist/changes-5.1.0 b/dist/changes-5.1.0 index 1124c9b9c5..4aa06cf342 100644 --- a/dist/changes-5.1.0 +++ b/dist/changes-5.1.0 @@ -50,6 +50,9 @@ QtCore * Added marginsAdded(), marginsRemoved() and operators +, -, +=, -= taking a QMargins object allowing for conveniently adding or removing margins. + - QMargins: + * Added operators for adding and subtracting QMargins objects, + multiplication and division for int/qreal and unary minus. - |