diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2014-04-04 23:59:37 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-08 22:06:55 +0200 |
commit | 4bed03eb8515d090f476ed69be6331bb513ffaf7 (patch) | |
tree | 5a96660611360c20de5878f135f467ee08965358 /src/gui/painting/qpagelayout.h | |
parent | 0de0f494bd75786ff361da2ac05c85d8aeac3b37 (diff) |
QPageLayout: make op== non-member
Better style, since it treats the left-hand and right-hand size symmetrically,
e.g. for implicit conversions.
Change-Id: Ib5d39b1ebffffcb664ee2f72c756702469e32d3b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/painting/qpagelayout.h')
-rw-r--r-- | src/gui/painting/qpagelayout.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/painting/qpagelayout.h b/src/gui/painting/qpagelayout.h index c636ca7476..0ca1682b20 100644 --- a/src/gui/painting/qpagelayout.h +++ b/src/gui/painting/qpagelayout.h @@ -92,7 +92,7 @@ public: void swap(QPageLayout &other) { d.swap(other.d); } - bool operator==(const QPageLayout &other) const; + friend Q_GUI_EXPORT bool operator==(const QPageLayout &lhs, const QPageLayout &rhs); bool isEquivalentTo(const QPageLayout &other) const; bool isValid() const; @@ -142,6 +142,8 @@ private: Q_DECLARE_SHARED(QPageLayout) +Q_GUI_EXPORT bool operator==(const QPageLayout &lhs, const QPageLayout &rhs); + #ifndef QT_NO_DEBUG_STREAM Q_GUI_EXPORT QDebug operator<<(QDebug dbg, const QPageLayout &pageLayout); #endif |