From f39bb2af2d81640d30222cd5abc31b076105dd8b Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Wed, 24 Feb 2010 18:39:52 +0100 Subject: Install the extensions in the given uri. Reviewed-by: mae --- src/plugins/qdeclarativemodules/widgets/widgets.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/plugins/qdeclarativemodules/widgets/widgets.cpp b/src/plugins/qdeclarativemodules/widgets/widgets.cpp index a0a2597..dc45428 100644 --- a/src/plugins/qdeclarativemodules/widgets/widgets.cpp +++ b/src/plugins/qdeclarativemodules/widgets/widgets.cpp @@ -121,19 +121,18 @@ public: virtual void initialize(QDeclarativeEngine *engine, const char *uri) { - Q_UNUSED(uri); Q_UNUSED(engine); Q_ASSERT(QLatin1String(uri) == QLatin1String("Qt.widgets")); QML_REGISTER_INTERFACE(QGraphicsLayoutItem); QML_REGISTER_INTERFACE(QGraphicsLayout); - QML_REGISTER_TYPE(Qt,4,6,QGraphicsLinearLayoutStretchItem,QGraphicsLinearLayoutStretchItemObject); - QML_REGISTER_TYPE(Qt,4,6,QGraphicsLinearLayout,QGraphicsLinearLayoutObject); - QML_REGISTER_TYPE(Qt,4,6,QGraphicsGridLayout,QGraphicsGridLayoutObject); - QML_REGISTER_EXTENDED_TYPE(Qt,4,6,QGraphicsView,QGraphicsView,QGraphicsViewDeclarativeUI); - QML_REGISTER_EXTENDED_TYPE(Qt,4,6,QGraphicsScene,QGraphicsScene,QGraphicsSceneDeclarativeUI); - QML_REGISTER_EXTENDED_TYPE(Qt,4,6,QGraphicsWidget,QGraphicsWidget,QGraphicsWidgetDeclarativeUI); + qmlRegisterType(uri,4,6,"QGraphicsLinearLayoutStretchItem","QGraphicsLinearLayoutStretchItemObject"); + qmlRegisterType(uri,4,6,"QGraphicsLinearLayout","QGraphicsLinearLayoutObject"); + qmlRegisterType(uri,4,6,"QGraphicsGridLayout","QGraphicsGridLayoutObject"); + qmlRegisterExtendedType(uri,4,6,"QGraphicsView","QGraphicsView"); + qmlRegisterExtendedType(uri,4,6,"QGraphicsScene","QGraphicsScene"); + qmlRegisterExtendedType(uri,4,6,"QGraphicsWidget","QGraphicsWidget"); QML_REGISTER_INTERFACE(QGraphicsItem); } }; -- cgit v0.12