register canvas and related classess
This commit is contained in:
parent
46a0bd1ba0
commit
cefe75f493
|
@ -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>();
|
||||
|
|
Loading…
Reference in New Issue