diff options
author | Gunnar Sletta <gunnar@sletta.org> | 2015-06-19 13:07:54 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar@sletta.org> | 2015-06-30 09:50:56 +0000 |
commit | e76754d8f53e12140898473fb0d1aa43c1051500 (patch) | |
tree | 2366d6b6e983a7690b670dff2a44e9b170044d7b | |
parent | 9a5401be1da2fe2ba9227c4008fc086e0fce9301 (diff) | |
download | qtgraphicaleffects-e76754d8f53e12140898473fb0d1aa43c1051500.tar.gz qtgraphicaleffects-e76754d8f53e12140898473fb0d1aa43c1051500.tar.bz2 qtgraphicaleffects-e76754d8f53e12140898473fb0d1aa43c1051500.zip |
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 <simon.hausmann@theqtcompany.com>
-rw-r--r-- | src/effects/private/qgfxsourceproxy_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |