diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2014-04-05 00:00:15 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-08 22:07:01 +0200 |
commit | c7dd6006b98536a80f02d96e660632ffa150934a (patch) | |
tree | fe58c8e3e9e61d9eb65fe9386f2f4c081c5b73d4 /src/gui/painting/qpagelayout.cpp | |
parent | 4bed03eb8515d090f476ed69be6331bb513ffaf7 (diff) |
QPageLayout: provide op!=
For consistency.
Change-Id: I20fb70999785e2c1947f033d63367a2f6746990a
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: John Layt <jlayt@kde.org>
Diffstat (limited to 'src/gui/painting/qpagelayout.cpp')
-rw-r--r-- | src/gui/painting/qpagelayout.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/painting/qpagelayout.cpp b/src/gui/painting/qpagelayout.cpp index b48b9f6e4d..d9e826bd64 100644 --- a/src/gui/painting/qpagelayout.cpp +++ b/src/gui/painting/qpagelayout.cpp @@ -444,6 +444,20 @@ bool operator==(const QPageLayout &lhs, const QPageLayout &rhs) } /*! + \fn bool operator!=(const QPageLayout &lhs, const QPageLayout &rhs) + \relates QPageLayout + + Returns \c true if page layout \a lhs is not equal to page layout \a rhs, + i.e. if any of the attributes differ. + + Note that this is a strict equality, especially for page size where the + QPageSize ID, name and size must exactly match, and the margins where the + units must match. + + \sa QPageLayout::isEquivalentTo() +*/ + +/*! Returns \c true if this page layout is equivalent to the \a other page layout, i.e. if the page has the same size, margins and orientation. */ |