diff options
author | mae <qt-info@nokia.com> | 2010-03-10 17:29:44 (GMT) |
---|---|---|
committer | mae <qt-info@nokia.com> | 2010-03-10 17:31:33 (GMT) |
commit | e5922ab126f3532483b18720ce893d6be826d50e (patch) | |
tree | 1d2913660c64847b8bade9ab89e159a8bdc0de63 /demos | |
parent | b8f9d43dc87054f4f0322a2d124beeb7aaf8bb8f (diff) | |
download | Qt-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 'demos')
-rw-r--r-- | demos/declarative/minehunt/minehunt.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/demos/declarative/minehunt/minehunt.cpp b/demos/declarative/minehunt/minehunt.cpp index 89845ef..2e1b5b3 100644 --- a/demos/declarative/minehunt/minehunt.cpp +++ b/demos/declarative/minehunt/minehunt.cpp @@ -292,9 +292,8 @@ class MinehuntExtensionPlugin : public QDeclarativeExtensionPlugin public: void registerTypes(const char *uri) { - Q_UNUSED(uri); - QML_REGISTER_TYPE(SameGameCore, 0, 1, Tile, Tile); - QML_REGISTER_TYPE(SameGameCore, 0, 1, Game, MinehuntGame); + qmlRegisterType<Tile>(uri, 0, 1, "Tile"); + qmlRegisterType<MinehuntGame>(uri, 0, 1, "Game"); } void initializeEngine(QDeclarativeEngine *engine, const char *uri) { |