From 3c5c6f6309d99286a3ecbbce014eb158f4f4013d Mon Sep 17 00:00:00 2001 From: Andy Nichols Date: Tue, 19 Aug 2014 16:15:09 +0200 Subject: Add support for rendering QQuickPaintedItem Change-Id: I80dbd2003f53e21fa35ebd270ecc92cc03628454 Reviewed-by: Lars Knoll --- softwarecontext/context.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'softwarecontext/context.cpp') diff --git a/softwarecontext/context.cpp b/softwarecontext/context.cpp index 2bf4e7f0fc..1a8b07b1b4 100644 --- a/softwarecontext/context.cpp +++ b/softwarecontext/context.cpp @@ -22,6 +22,7 @@ #include "rectanglenode.h" #include "imagenode.h" +#include "painternode.h" #include "pixmaptexture.h" #include "glyphnode.h" #include "ninepatchnode.h" @@ -141,6 +142,11 @@ QSGImageNode *Context::createImageNode() return new ImageNode(); } +QSGPainterNode *Context::createPainterNode(QQuickPaintedItem *item) +{ + return new PainterNode(item); +} + QSGGlyphNode *Context::createGlyphNode(QSGRenderContext *rc, bool preferNativeGlyphNode) { Q_UNUSED(rc); -- cgit v1.2.3