summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpagesize.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2014-04-04 23:59:37 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-08 22:06:31 +0200
commit9f924338a8c003c01864a44569ed2fb4cbba7d2d (patch)
tree0e65b9b10b44d008a72eb2ea6500a096ddde9653 /src/gui/painting/qpagesize.h
parent6115ba4f4e30808fb48948fbc02f33b5de5ed9b3 (diff)
QPageSize: make op== non-member
Better style, since it treats the left-hand and right-hand size symmetrically, e.g. for implicit conversions. Change-Id: If1ffa9dc2a018e402c884f60bfbc82e799daeb92 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/painting/qpagesize.h')
-rw-r--r--src/gui/painting/qpagesize.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/painting/qpagesize.h b/src/gui/painting/qpagesize.h
index 8b99d6af2e..d228f05a4a 100644
--- a/src/gui/painting/qpagesize.h
+++ b/src/gui/painting/qpagesize.h
@@ -246,7 +246,7 @@ public:
void swap(QPageSize &other) { d.swap(other.d); }
- bool operator==(const QPageSize &other) const;
+ friend Q_GUI_EXPORT bool operator==(const QPageSize &lhs, const QPageSize &rhs);
bool isEquivalentTo(const QPageSize &other) const;
bool isValid() const;
@@ -298,6 +298,8 @@ private:
Q_DECLARE_SHARED(QPageSize)
+Q_GUI_EXPORT bool operator==(const QPageSize &lhs, const QPageSize &rhs);
+
#ifndef QT_NO_DEBUG_STREAM
Q_GUI_EXPORT QDebug operator<<(QDebug dbg, const QPageSize &pageSize);
#endif