summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2010-02-24 17:39:52 (GMT)
committerRoberto Raggi <roberto.raggi@nokia.com>2010-02-24 17:39:52 (GMT)
commitf39bb2af2d81640d30222cd5abc31b076105dd8b (patch)
tree38abbb5b0c864d56565fc7b9a4894fd62fe9713a
parent36af8113fc9b98c90c8fd0afd7a76f3bc23dc23b (diff)
downloadQt-f39bb2af2d81640d30222cd5abc31b076105dd8b.zip
Qt-f39bb2af2d81640d30222cd5abc31b076105dd8b.tar.gz
Qt-f39bb2af2d81640d30222cd5abc31b076105dd8b.tar.bz2
Install the extensions in the given uri.
Reviewed-by: mae
-rw-r--r--src/plugins/qdeclarativemodules/widgets/widgets.cpp13
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);
}
};