summaryrefslogtreecommitdiffstats
path: root/src/imports/widgets
diff options
context:
space:
mode:
authormae <qt-info@nokia.com>2010-03-10 17:29:44 (GMT)
committermae <qt-info@nokia.com>2010-03-10 17:31:33 (GMT)
commite5922ab126f3532483b18720ce893d6be826d50e (patch)
tree1d2913660c64847b8bade9ab89e159a8bdc0de63 /src/imports/widgets
parentb8f9d43dc87054f4f0322a2d124beeb7aaf8bb8f (diff)
downloadQt-e5922ab126f3532483b18720ce893d6be826d50e.zip
Qt-e5922ab126f3532483b18720ce893d6be826d50e.tar.gz
Qt-e5922ab126f3532483b18720ce893d6be826d50e.tar.bz2
Document - and use - the qmlRegisterXXX template functions
This commit removes the obsolete QML_REGISTER_TYPE macros.
Diffstat (limited to 'src/imports/widgets')
-rw-r--r--src/imports/widgets/widgets.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/imports/widgets/widgets.cpp b/src/imports/widgets/widgets.cpp
index ec21cc4..bc18e8a 100644
--- a/src/imports/widgets/widgets.cpp
+++ b/src/imports/widgets/widgets.cpp
@@ -118,15 +118,15 @@ public:
{
Q_ASSERT(QLatin1String(uri) == QLatin1String("Qt.widgets"));
- QML_REGISTER_INTERFACE(QGraphicsLayoutItem);
- QML_REGISTER_INTERFACE(QGraphicsLayout);
+ qmlRegisterInterface<QGraphicsLayoutItem>("QGraphicsLayoutItem");
+ qmlRegisterInterface<QGraphicsLayout>("QGraphicsLayout");
qmlRegisterType<QGraphicsLinearLayoutStretchItemObject>(uri,4,6,"QGraphicsLinearLayoutStretchItem");
qmlRegisterType<QGraphicsLinearLayoutObject>(uri,4,6,"QGraphicsLinearLayout");
qmlRegisterType<QGraphicsGridLayoutObject>(uri,4,6,"QGraphicsGridLayout");
qmlRegisterExtendedType<QGraphicsView, QGraphicsViewDeclarativeUI>(uri,4,6,"QGraphicsView");
qmlRegisterExtendedType<QGraphicsScene,QGraphicsSceneDeclarativeUI>(uri,4,6,"QGraphicsScene");
qmlRegisterExtendedType<QGraphicsWidget,QGraphicsWidgetDeclarativeUI>(uri,4,6,"QGraphicsWidget");
- QML_REGISTER_INTERFACE(QGraphicsItem);
+ qmlRegisterInterface<QGraphicsItem>("QGraphicsItem");
}
};