From: Samuel Rødal Date: Wed, 16 May 2012 18:53:54 +0000 (+0200) Subject: Properly bind to the yInverted property in qml-compositor. X-Git-Tag: TIZEN~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=711ecf5c1d03101c07297adce1e2b36194d7e6af;p=profile%2Fivi%2Fqtwayland.git Properly bind to the yInverted property in qml-compositor. Change-Id: I1260ce2e0f711dc1140b7030e4941159d9eae03c Reviewed-by: Laszlo Agocs --- diff --git a/examples/qml-compositor/ContrastEffect.qml b/examples/qml-compositor/ContrastEffect.qml index 0a9ad67..8987a56 100644 --- a/examples/qml-compositor/ContrastEffect.qml +++ b/examples/qml-compositor/ContrastEffect.qml @@ -48,15 +48,6 @@ ShaderEffect { onSourceChanged: { if (source != null) { source.setPaintEnabled(false); - vertexShader = source.yInverted ? vShaderInvertedY : vShader; - } - } - - Connections { - target: source; - onYInvertedChanged: { - print("onY " + source.yInverted); - vertexShader = source.yInverted ? vShaderInvertedY : vShader; } } @@ -81,6 +72,8 @@ ShaderEffect { } " + vertexShader: source && source.isYInverted ? vShaderInvertedY : vShader + fragmentShader: " uniform sampler2D source; uniform float qt_Opacity;