summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2023-05-16 12:12:37 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2023-05-16 16:08:11 +0200
commitddbe06a1ba473886da10ff24c6038519aff523a0 (patch)
tree615e1aad8487b2e5df57ba06631dd7e275515ee6
parent19e7eafbaec8bfec556e673f074080d20894d628 (diff)
downloadqtdeclarative-ddbe06a1ba473886da10ff24c6038519aff523a0.tar.gz
Fix qmllint-reported warning in shadereffects example
Pick-to: 6.5 Change-Id: I1f1a3ba69cd619e5fb07be4fc4150fe1b1352bee Reviewed-by: Christian Strømme <christian.stromme@qt.io>
-rw-r--r--examples/quick/shadereffects/shadereffects.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/quick/shadereffects/shadereffects.qml b/examples/quick/shadereffects/shadereffects.qml
index 3176ed2b34..daf3927246 100644
--- a/examples/quick/shadereffects/shadereffects.qml
+++ b/examples/quick/shadereffects/shadereffects.qml
@@ -78,7 +78,7 @@ Rectangle {
property variant source: theSource
property real amplitude: 0.04 * wobbleSlider.value
property real frequency: 20
- property real time: 0
+ property real time
NumberAnimation on time { loops: Animation.Infinite; from: 0; to: Math.PI * 2; duration: 600 }
//! [fragment]
fragmentShader: "content/shaders/wobble.frag.qsb"
@@ -114,7 +114,7 @@ Rectangle {
fragmentShader: "content/shaders/blur.frag.qsb"
}
}
- property real angle: 0
+ property real angle
property variant offset: Qt.point(15.0 * Math.cos(angle), 15.0 * Math.sin(angle))
NumberAnimation on angle { loops: Animation.Infinite; from: 0; to: Math.PI * 2; duration: 6000 }
property variant delta: Qt.size(offset.x / width, offset.y / height)
@@ -158,8 +158,8 @@ Rectangle {
height: 160
//! [properties]
property variant source: theSource
- property real bend: 0
- property real minimize: 0
+ property real bend
+ property real minimize
property real side: genieSlider.value
SequentialAnimation on bend {
loops: Animation.Infinite