aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickrendertarget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/items/qquickrendertarget.h')
-rw-r--r--src/quick/items/qquickrendertarget.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/quick/items/qquickrendertarget.h b/src/quick/items/qquickrendertarget.h
index 95070b0a63..26b301c4ff 100644
--- a/src/quick/items/qquickrendertarget.h
+++ b/src/quick/items/qquickrendertarget.h
@@ -86,12 +86,15 @@ public:
private:
void detach();
+ bool isEqual(const QQuickRenderTarget &other) const noexcept;
QQuickRenderTargetPrivate *d;
friend class QQuickRenderTargetPrivate;
-};
-Q_QUICK_EXPORT bool operator==(const QQuickRenderTarget &a, const QQuickRenderTarget &b) Q_DECL_NOTHROW;
-Q_QUICK_EXPORT bool operator!=(const QQuickRenderTarget &a, const QQuickRenderTarget &b) Q_DECL_NOTHROW;
+ friend bool operator==(const QQuickRenderTarget &lhs, const QQuickRenderTarget &rhs) noexcept
+ { return lhs.isEqual(rhs); }
+ friend bool operator!=(const QQuickRenderTarget &lhs, const QQuickRenderTarget &rhs) noexcept
+ { return !lhs.isEqual(rhs); }
+};
QT_END_NAMESPACE