From cefe75f49321d96e643d7634544f3fde2879eacf Mon Sep 17 00:00:00 2001 From: Charles Yin Date: Mon, 16 May 2011 10:20:12 +1000 Subject: [PATCH] register canvas and related classess --- 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 aa74ff6..6ea20bb 100644 --- a/src/declarative/items/qsgitemsmodule.cpp +++ b/src/declarative/items/qsgitemsmodule.cpp @@ -73,6 +73,8 @@ #include #include //#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("QtQuick", 2, 0, "PaintedItem", QSGPaintedItem::tr("Cannot create instance of abstract class PaintedItem")); + qmlRegisterType("QtQuick", 2, 0, "Canvas"); + qmlRegisterType(); + qmlRegisterType(); + + qmlRegisterType(uri, major, minor,"ParentChange"); qmlRegisterType(uri, major, minor,"AnchorChanges"); qmlRegisterType(); -- 1.7.2.5