register canvas and related classess

This commit is contained in:
Charles Yin 2011-05-16 10:20:12 +10:00
parent 46a0bd1ba0
commit cefe75f493
1 changed files with 7 additions and 0 deletions

View File

@ -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>();