aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qml/referenceexamples/grouped/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qml/referenceexamples/grouped/main.cpp')
-rw-r--r--examples/qml/referenceexamples/grouped/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/qml/referenceexamples/grouped/main.cpp b/examples/qml/referenceexamples/grouped/main.cpp
index 14cd64fe68..a237006e29 100644
--- a/examples/qml/referenceexamples/grouped/main.cpp
+++ b/examples/qml/referenceexamples/grouped/main.cpp
@@ -59,8 +59,8 @@ int main(int argc, char ** argv)
QCoreApplication app(argc, argv);
qmlRegisterType<BirthdayParty>("People", 1,0, "BirthdayParty");
- qmlRegisterType<ShoeDescription>();
- qmlRegisterType<Person>();
+ qmlRegisterAnonymousType<ShoeDescription>("People", 1);
+ qmlRegisterAnonymousType<Person>("People", 1);
qmlRegisterType<Boy>("People", 1,0, "Boy");
qmlRegisterType<Girl>("People", 1,0, "Girl");