From e76754d8f53e12140898473fb0d1aa43c1051500 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Fri, 19 Jun 2015 13:07:54 +0200 Subject: Fix warnings in gradients. We're assigning 'undefined' to it, so implement a resetter. Change-Id: Ie43282043b250f2e9cd247d4819b1827ab7e9e97 Task-number: QTBUG-46774 Reviewed-by: Simon Hausmann --- src/effects/private/qgfxsourceproxy_p.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/effects/private/qgfxsourceproxy_p.h b/src/effects/private/qgfxsourceproxy_p.h index 3356dd6..69d8e10 100644 --- a/src/effects/private/qgfxsourceproxy_p.h +++ b/src/effects/private/qgfxsourceproxy_p.h @@ -44,7 +44,7 @@ class QGfxSourceProxy : public QQuickItem { Q_OBJECT - Q_PROPERTY(QQuickItem *input READ input WRITE setInput NOTIFY inputChanged) + Q_PROPERTY(QQuickItem *input READ input WRITE setInput NOTIFY inputChanged RESET resetInput) Q_PROPERTY(QQuickItem *output READ output NOTIFY outputChanged) Q_PROPERTY(QRectF sourceRect READ sourceRect WRITE setSourceRect NOTIFY sourceRectChanged) @@ -65,6 +65,7 @@ public: QQuickItem *input() const { return m_input; } void setInput(QQuickItem *input); + void resetInput() { setInput(0); } QQuickItem *output() const { return m_output; } -- cgit v1.2.3