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:06:38 +0200 |
commit | 22afdaa2dadc9ef610cbb9c69755ca589fbf907b (patch) | |
tree | 3a20e96d6ee8d20dc816a1c676932698accfec93 /src/gui/painting/qpagesize.h | |
parent | 9f924338a8c003c01864a44569ed2fb4cbba7d2d (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.h')
-rw-r--r-- | src/gui/painting/qpagesize.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/painting/qpagesize.h b/src/gui/painting/qpagesize.h index d228f05a4a..8205d2eae4 100644 --- a/src/gui/painting/qpagesize.h +++ b/src/gui/painting/qpagesize.h @@ -299,6 +299,8 @@ private: Q_DECLARE_SHARED(QPageSize) Q_GUI_EXPORT bool operator==(const QPageSize &lhs, const QPageSize &rhs); +inline bool operator!=(const QPageSize &lhs, const QPageSize &rhs) +{ return !operator==(lhs, rhs); } #ifndef QT_NO_DEBUG_STREAM Q_GUI_EXPORT QDebug operator<<(QDebug dbg, const QPageSize &pageSize); |