From ddbe06a1ba473886da10ff24c6038519aff523a0 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Tue, 16 May 2023 12:12:37 +0200 Subject: Fix qmllint-reported warning in shadereffects example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pick-to: 6.5 Change-Id: I1f1a3ba69cd619e5fb07be4fc4150fe1b1352bee Reviewed-by: Christian Strømme --- examples/quick/shadereffects/shadereffects.qml | 8 ++++---- 1 file 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 -- cgit v1.2.1