diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-05-06 14:57:40 +0200 |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-05-09 09:31:09 +0200 |
commit | 3be92b70f5c737d336e3d9da96945ff8ba5cf3e5 (patch) | |
tree | dd148eeb0ea8d15460bdd92ca2f6147986bc1586 /examples/qml-compositor | |
parent | 81daa842a9b1bc84dce25f5a43205d809d24814d (diff) |
Add new hidden property in WaylandSurfaceItem to control visibility.
This lets us control visibility while still having the mouse events
working. We usually want to hide the surface item if it has a shader
effect item modifying its appearance (since otherwise both the source
and the shader effect items are shown, blended on top of each other).
Diffstat (limited to 'examples/qml-compositor')
-rw-r--r-- | examples/qml-compositor/qml/QmlCompositor/ShaderEffect.qml | 2 | ||||
-rw-r--r-- | examples/qml-compositor/qml/QmlCompositor/WindowChrome.qml | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/examples/qml-compositor/qml/QmlCompositor/ShaderEffect.qml b/examples/qml-compositor/qml/QmlCompositor/ShaderEffect.qml index b1412f6b5..ffbe58cbd 100644 --- a/examples/qml-compositor/qml/QmlCompositor/ShaderEffect.qml +++ b/examples/qml-compositor/qml/QmlCompositor/ShaderEffect.qml @@ -47,7 +47,7 @@ ShaderEffectItem { onSourceChanged: { if (source != null) { - source.visible = false; + source.setHidden(true); vertexShader = source.isYInverted() ? vShaderInvertedY : vShader; } } diff --git a/examples/qml-compositor/qml/QmlCompositor/WindowChrome.qml b/examples/qml-compositor/qml/QmlCompositor/WindowChrome.qml index 9e6b0a807..3b6727d60 100644 --- a/examples/qml-compositor/qml/QmlCompositor/WindowChrome.qml +++ b/examples/qml-compositor/qml/QmlCompositor/WindowChrome.qml @@ -53,10 +53,4 @@ Item { window.takeFocus(); } } - - Binding { - target: window - property: "opacity" - value: 0.01 - } } |