From 42d6acd0a3ea5fa5cf7ab69f1f8f2206559107ea Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Tue, 20 Dec 2011 00:50:15 +0100 Subject: Introduce layerering support (ShaderEffectSource) directly in Item This is enabled by doing "Item.layer.enabled: true". The implementation is solely based on the existing shader effect (source) and simply swaps in a sibling next to the item when enabled. This change also adds the QSGTextureProvider to the public API, as it is now a natural part of the QQuickItem API since all items can be textures. Change-Id: I26705c11e92d5623a5121300acc123782b784077 Reviewed-by: Kim M. Kalland --- src/quick/items/qquickitemsmodule.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/quick/items/qquickitemsmodule.cpp') diff --git a/src/quick/items/qquickitemsmodule.cpp b/src/quick/items/qquickitemsmodule.cpp index b5eb611e78..0d7f1e1b1f 100644 --- a/src/quick/items/qquickitemsmodule.cpp +++ b/src/quick/items/qquickitemsmodule.cpp @@ -163,6 +163,7 @@ static void qt_quickitems_defineModule(const char *uri, int major, int minor) qmlRegisterType(uri,major,minor,"VisualDataGroup"); qmlRegisterType(uri,major,minor,"VisualItemModel"); + qmlRegisterType(); qmlRegisterType(); qmlRegisterType(); qmlRegisterType(); -- cgit v1.2.3