Allow Item components to be assigned to Item.layer.effect.
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>
Tue, 17 Jan 2012 16:06:08 +0000 (17:06 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 7 Feb 2012 13:04:37 +0000 (14:04 +0100)
commit5cc1870d2084f4f9a291d92d3ccd99f2c18d6fca
treeb135d347d1349a79926f98e1a9c89450708fd616
parentb057ac0a3f1bae9620f238363310a262b247e291
Allow Item components to be assigned to Item.layer.effect.

Some complex effects are easier to implement as Items using
ShaderEffects internally rather than with a top-level ShaderEffect.
Auto-tests added.

Change-Id: I4b99811b87e7ca5054bf119b99207b7f5a7c666e
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
src/quick/items/qquickitem.cpp
src/quick/items/qquickitem_p.h
tests/auto/qtquick2/qquickitemlayer/data/ItemEffect.qml [new file with mode: 0644]
tests/auto/qtquick2/qquickitemlayer/data/RectangleEffect.qml [new file with mode: 0644]
tests/auto/qtquick2/qquickitemlayer/qquickitemlayer.pro
tests/auto/qtquick2/qquickitemlayer/tst_qquickitemlayer.cpp