summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@nokia.com>2011-12-16 11:13:59 +0100
committerJørgen Lind <jorgen.lind@nokia.com>2012-01-05 15:33:59 +0100
commit2946b474b162680d8411074bc141289a5d35de21 (patch)
tree4f01dc283bf234f1a715b8df4b533d300b71b728 /examples
parent5d0a7d01f39efadd9c6b2b4aa744992dd80a550a (diff)
downloadqtwayland-2946b474b162680d8411074bc141289a5d35de21.tar.gz
Add isYInverted property with notification
Change-Id: I6a835a2be4513fa6c24f172503669bc3c95fad0b Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/qml-compositor/qml/QmlCompositor/ContrastEffect.qml10
1 files changed, 9 insertions, 1 deletions
diff --git a/examples/qml-compositor/qml/QmlCompositor/ContrastEffect.qml b/examples/qml-compositor/qml/QmlCompositor/ContrastEffect.qml
index b832c713..5c5edd81 100644
--- a/examples/qml-compositor/qml/QmlCompositor/ContrastEffect.qml
+++ b/examples/qml-compositor/qml/QmlCompositor/ContrastEffect.qml
@@ -48,7 +48,15 @@ ShaderEffect {
onSourceChanged: {
if (source != null) {
source.setPaintEnabled(false);
- vertexShader = source.isYInverted() ? vShaderInvertedY : vShader;
+ vertexShader = source.isYInverted ? vShaderInvertedY : vShader;
+ }
+ }
+
+ Connections {
+ target: source;
+ onYInvertedChanged: {
+ print("onY " + source.isYInverted);
+ vertexShader = source.isYInverted ? vShaderInvertedY : vShader;
}
}