diff options
Diffstat (limited to 'src/gui/painting/qcolorspace.h')
-rw-r--r-- | src/gui/painting/qcolorspace.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/gui/painting/qcolorspace.h b/src/gui/painting/qcolorspace.h index d31bf1a326..c464a271be 100644 --- a/src/gui/painting/qcolorspace.h +++ b/src/gui/painting/qcolorspace.h @@ -119,8 +119,10 @@ public: void detach(); bool isValid() const noexcept; - friend Q_GUI_EXPORT bool operator==(const QColorSpace &colorSpace1, const QColorSpace &colorSpace2); - friend inline bool operator!=(const QColorSpace &colorSpace1, const QColorSpace &colorSpace2); + friend inline bool operator==(const QColorSpace &colorSpace1, const QColorSpace &colorSpace2) + { return colorSpace1.equals(colorSpace2); } + friend inline bool operator!=(const QColorSpace &colorSpace1, const QColorSpace &colorSpace2) + { return !(colorSpace1 == colorSpace2); } static QColorSpace fromIccProfile(const QByteArray &iccProfile); QByteArray iccProfile() const; @@ -131,6 +133,8 @@ public: private: friend class QColorSpacePrivate; + bool equals(const QColorSpace &other) const; + QExplicitlySharedDataPointer<QColorSpacePrivate> d_ptr; #ifndef QT_NO_DEBUG_STREAM @@ -138,11 +142,6 @@ private: #endif }; -inline bool operator!=(const QColorSpace &colorSpace1, const QColorSpace &colorSpace2) -{ - return !(colorSpace1 == colorSpace2); -} - Q_DECLARE_SHARED(QColorSpace) // QColorSpace stream functions |