diff options
author | Andy Nichols <andy.nichols@digia.com> | 2014-08-19 16:15:09 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2014-08-25 15:29:03 +0300 |
commit | 3c5c6f6309d99286a3ecbbce014eb158f4f4013d (patch) | |
tree | b705d7fc9e72002e2d68bbe61d3a529cb143db5f /softwarecontext/context.cpp | |
parent | 3833d010c93b6c8d56ee8365e08ab47236e4af5a (diff) |
Add support for rendering QQuickPaintedItem
Change-Id: I80dbd2003f53e21fa35ebd270ecc92cc03628454
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'softwarecontext/context.cpp')
-rw-r--r-- | softwarecontext/context.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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); |