diff options
author | Charles Yin <charles.yin@nokia.com> | 2011-05-16 10:20:12 +1000 |
---|---|---|
committer | Charles Yin <charles.yin@nokia.com> | 2011-05-16 10:20:12 +1000 |
commit | cefe75f49321d96e643d7634544f3fde2879eacf (patch) | |
tree | 26b83cdff2a6458a349f17f3ad81a724057456f3 /src | |
parent | 46a0bd1ba016c49969b039a7e89e62bf1c68cc3b (diff) |
register canvas and related classess
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/items/qsgitemsmodule.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/declarative/items/qsgitemsmodule.cpp b/src/declarative/items/qsgitemsmodule.cpp index aa74ff6bc5..6ea20bb38b 100644 --- a/src/declarative/items/qsgitemsmodule.cpp +++ b/src/declarative/items/qsgitemsmodule.cpp @@ -73,6 +73,8 @@ #include <private/qsgshadereffectitem_p.h> #include <private/qsgshadereffectsource_p.h> //#include "private/qsgpincharea_p.h" +#include "qsgcanvasitem_p.h" +#include "qsgcontext2d_p.h" static QDeclarativePrivate::AutoParentResult qsgitem_autoParent(QObject *obj, QObject *parent) { @@ -173,6 +175,11 @@ static void qt_sgitems_defineModule(const char *uri, int major, int minor) qmlRegisterUncreatableType<QSGPaintedItem>("QtQuick", 2, 0, "PaintedItem", QSGPaintedItem::tr("Cannot create instance of abstract class PaintedItem")); + qmlRegisterType<QSGCanvasItem>("QtQuick", 2, 0, "Canvas"); + qmlRegisterType<QSGContext2D>(); + qmlRegisterType<QSGCanvasGradient>(); + + qmlRegisterType<QSGParentChange>(uri, major, minor,"ParentChange"); qmlRegisterType<QSGAnchorChanges>(uri, major, minor,"AnchorChanges"); qmlRegisterType<QSGAnchorSet>(); |