summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativeitemsmodule.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-07-22 08:00:16 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-07-22 08:00:16 (GMT)
commitd32adfd34f5cd2334b4041dfc0c07a5538ccdff7 (patch)
tree1c694ebd45377baf633e0e8091ae40c35b537c1e /src/declarative/graphicsitems/qdeclarativeitemsmodule.cpp
parent75aabee03791804772c4fe934630a27f7c2c9ae5 (diff)
downloadQt-d32adfd34f5cd2334b4041dfc0c07a5538ccdff7.zip
Qt-d32adfd34f5cd2334b4041dfc0c07a5538ccdff7.tar.gz
Qt-d32adfd34f5cd2334b4041dfc0c07a5538ccdff7.tar.bz2
Generalize qml "registration"
While it is difficult to predict the future, the hope is that this might give us a little more flexibility when it comes to fixing bugs etc. in patch releases.
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativeitemsmodule.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativeitemsmodule.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeitemsmodule.cpp b/src/declarative/graphicsitems/qdeclarativeitemsmodule.cpp
index b198077..5d623dc 100644
--- a/src/declarative/graphicsitems/qdeclarativeitemsmodule.cpp
+++ b/src/declarative/graphicsitems/qdeclarativeitemsmodule.cpp
@@ -95,7 +95,8 @@ static QDeclarativePrivate::AutoParentResult qgraphicsobject_autoParent(QObject
void QDeclarativeItemModule::defineModule()
{
- QDeclarativePrivate::registerAutoParentFunction(qgraphicsobject_autoParent);
+ QDeclarativePrivate::RegisterAutoParent autoparent = { 0, &qgraphicsobject_autoParent };
+ QDeclarativePrivate::qmlregister(QDeclarativePrivate::AutoParentRegistration, &autoparent);
#ifdef QT_NO_MOVIE
qmlRegisterTypeNotAvailable("Qt",4,7,"AnimatedImage",