summaryrefslogtreecommitdiffstats
path: root/demos/declarative/minehunt
diff options
context:
space:
mode:
Diffstat (limited to 'demos/declarative/minehunt')
-rw-r--r--demos/declarative/minehunt/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/demos/declarative/minehunt/main.cpp b/demos/declarative/minehunt/main.cpp
index 0b862e3..9c225af 100644
--- a/demos/declarative/minehunt/main.cpp
+++ b/demos/declarative/minehunt/main.cpp
@@ -92,7 +92,6 @@ private:
};
QML_DECLARE_TYPE(Tile);
-QML_DEFINE_TYPE(0,0,0,Tile,Tile);
class MyWidget : public QWidget
{
@@ -323,6 +322,8 @@ int main(int argc, char ** argv)
int width = 370;
int height = 480;
+ QML_REGISTER_TYPE(0,0,0,Tile,Tile);
+
for (int i = 1; i < argc; ++i) {
QString arg = argv[i];
if (arg == "-frameless") {