diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-02-24 17:39:52 (GMT) |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-02-24 17:39:52 (GMT) |
commit | f39bb2af2d81640d30222cd5abc31b076105dd8b (patch) | |
tree | 38abbb5b0c864d56565fc7b9a4894fd62fe9713a /src | |
parent | 36af8113fc9b98c90c8fd0afd7a76f3bc23dc23b (diff) | |
download | Qt-f39bb2af2d81640d30222cd5abc31b076105dd8b.zip Qt-f39bb2af2d81640d30222cd5abc31b076105dd8b.tar.gz Qt-f39bb2af2d81640d30222cd5abc31b076105dd8b.tar.bz2 |
Install the extensions in the given uri.
Reviewed-by: mae
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/qdeclarativemodules/widgets/widgets.cpp | 13 |
1 files 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<QGraphicsLinearLayoutStretchItemObject>(uri,4,6,"QGraphicsLinearLayoutStretchItem","QGraphicsLinearLayoutStretchItemObject"); + qmlRegisterType<QGraphicsLinearLayoutObject>(uri,4,6,"QGraphicsLinearLayout","QGraphicsLinearLayoutObject"); + qmlRegisterType<QGraphicsGridLayoutObject>(uri,4,6,"QGraphicsGridLayout","QGraphicsGridLayoutObject"); + qmlRegisterExtendedType<QGraphicsView, QGraphicsViewDeclarativeUI>(uri,4,6,"QGraphicsView","QGraphicsView"); + qmlRegisterExtendedType<QGraphicsScene,QGraphicsSceneDeclarativeUI>(uri,4,6,"QGraphicsScene","QGraphicsScene"); + qmlRegisterExtendedType<QGraphicsWidget,QGraphicsWidgetDeclarativeUI>(uri,4,6,"QGraphicsWidget","QGraphicsWidget"); QML_REGISTER_INTERFACE(QGraphicsItem); } }; |