diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-30 17:19:04 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-30 17:30:49 +0200 |
commit | f3922dfbd191a78d489a32df6fb78b5f808e1241 (patch) | |
tree | 1471a61f4b0300b28b391339e2e88ba27a24ede5 /src/quick/items/qquickshadereffect_p.h | |
parent | 015017884737eba31a5b0bc41032d0abbc3311b9 (diff) |
Fix leftover argument names in ShaderEffect
"code" is misleading, and is a leftover from earlier times when the
value could have contained actual source code as well. We now have a
plain QUrl that is a local or qrc file reference. Update function
argument names accordingly. Also remove a confusing comment that was
again relevant when these properties were plain strings.
Change-Id: Ie88040d0c300a33167518098399dc0d1722a5961
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/quick/items/qquickshadereffect_p.h')
-rw-r--r-- | src/quick/items/qquickshadereffect_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/items/qquickshadereffect_p.h b/src/quick/items/qquickshadereffect_p.h index 184a69fdc7..392220b682 100644 --- a/src/quick/items/qquickshadereffect_p.h +++ b/src/quick/items/qquickshadereffect_p.h @@ -96,10 +96,10 @@ public: ~QQuickShaderEffect() override; QUrl fragmentShader() const; - void setFragmentShader(const QUrl &code); + void setFragmentShader(const QUrl &fileUrl); QUrl vertexShader() const; - void setVertexShader(const QUrl &code); + void setVertexShader(const QUrl &fileUrl); bool blending() const; void setBlending(bool enable); |