summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpagesize.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2014-04-05 00:00:15 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-08 22:06:38 +0200
commit22afdaa2dadc9ef610cbb9c69755ca589fbf907b (patch)
tree3a20e96d6ee8d20dc816a1c676932698accfec93 /src/gui/painting/qpagesize.cpp
parent9f924338a8c003c01864a44569ed2fb4cbba7d2d (diff)
QPageSize: provide op!=
For consistency. Change-Id: I4375a6f8c2514479a7479c735d397bf8a9876db1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: John Layt <jlayt@kde.org>
Diffstat (limited to 'src/gui/painting/qpagesize.cpp')
-rw-r--r--src/gui/painting/qpagesize.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/painting/qpagesize.cpp b/src/gui/painting/qpagesize.cpp
index 9cf7f192e8..60ca69d1f2 100644
--- a/src/gui/painting/qpagesize.cpp
+++ b/src/gui/painting/qpagesize.cpp
@@ -1268,6 +1268,14 @@ bool operator==(const QPageSize &lhs, const QPageSize &rhs)
return true;
return lhs.d && rhs.d && *lhs.d == *rhs.d;
}
+/*!
+ \fn bool operator!=(const QPageSize &lhs, const QPageSize &rhs)
+ \relates QPageSize
+
+ Returns \c true if page size \a lhs is unequal to page size \a
+ rhs, i.e. if the page size has different attributes. Current
+ attributes are size and name.
+*/
/*!
Returns \c true if this page is equivalent to the \a other page, i.e. if the