diff options
Diffstat (limited to 'examples/qml/referenceexamples/binding/main.cpp')
-rw-r--r-- | examples/qml/referenceexamples/binding/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/qml/referenceexamples/binding/main.cpp b/examples/qml/referenceexamples/binding/main.cpp index 99187eba3e..18a424ff38 100644 --- a/examples/qml/referenceexamples/binding/main.cpp +++ b/examples/qml/referenceexamples/binding/main.cpp @@ -58,11 +58,11 @@ int main(int argc, char ** argv) { QCoreApplication app(argc, argv); - qmlRegisterType<BirthdayPartyAttached>(); + qmlRegisterAnonymousType<BirthdayPartyAttached>("People", 1); qmlRegisterType<BirthdayParty>("People", 1,0, "BirthdayParty"); qmlRegisterType<HappyBirthdaySong>("People", 1,0, "HappyBirthdaySong"); - qmlRegisterType<ShoeDescription>(); - qmlRegisterType<Person>(); + qmlRegisterAnonymousType<ShoeDescription>("People", 1); + qmlRegisterAnonymousType<Person>("People", 1); qmlRegisterType<Boy>("People", 1,0, "Boy"); qmlRegisterType<Girl>("People", 1,0, "Girl"); |