diff options
Diffstat (limited to 'demos/declarative')
-rw-r--r-- | demos/declarative/minehunt/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/demos/declarative/minehunt/main.cpp b/demos/declarative/minehunt/main.cpp index a897919..0b2d818 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 { @@ -321,6 +320,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") { |