summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/video/qmlvideofx/qml/qmlvideofx/EffectRipple.qml
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@digia.com>2014-09-01 14:19:53 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-09-01 14:19:53 +0200
commitbc1fa076c944c6af3250cb7210190da42a4de6ea (patch)
treeb6948fa95abbdd4ffbb30b76c7d3c09ae07e51db /examples/multimedia/video/qmlvideofx/qml/qmlvideofx/EffectRipple.qml
parent0c3438c9a12fbc607eada8f938cf0ad8fdea374d (diff)
parent659f238bbbe040cce1bdf900f8f5500845ca8727 (diff)
Merge "Merge remote-tracking branch 'origin/5.3' into 5.4" into refs/staging/5.4v5.4.0-alpha1
Diffstat (limited to 'examples/multimedia/video/qmlvideofx/qml/qmlvideofx/EffectRipple.qml')
-rw-r--r--examples/multimedia/video/qmlvideofx/qml/qmlvideofx/EffectRipple.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/multimedia/video/qmlvideofx/qml/qmlvideofx/EffectRipple.qml b/examples/multimedia/video/qmlvideofx/qml/qmlvideofx/EffectRipple.qml
index ce301d6d9..c6c60bc29 100644
--- a/examples/multimedia/video/qmlvideofx/qml/qmlvideofx/EffectRipple.qml
+++ b/examples/multimedia/video/qmlvideofx/qml/qmlvideofx/EffectRipple.qml
@@ -31,7 +31,8 @@
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.1
+import QtQuick.Window 2.1
Effect {
parameters: ListModel {
@@ -48,6 +49,7 @@ Effect {
// Transform slider values, and bind result to shader uniforms
property real amplitude: parameters.get(0).value * 0.03
property real n: parameters.get(1).value * 7
+ property real pixDens: Screen.pixelDensity
property real time: 0
NumberAnimation on time { loops: Animation.Infinite; from: 0; to: Math.PI * 2; duration: 600 }