summaryrefslogtreecommitdiffstats
path: root/demos
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 /demos
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 'demos')
-rw-r--r--demos/declarative/minehunt/minehunt.cpp5
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) {