diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-08-27 11:39:00 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-08-27 16:20:55 +0200 |
commit | 76282f480e0db0b308429324ebcab7f3abd1189e (patch) | |
tree | 602239a73652af16a779bdc31952331a6e2bff06 /examples/qml/referenceexamples/signal | |
parent | 2ca41fb75721472bab1f9a4f4f9b2428fac7d60d (diff) |
Use qmlRegisterAnonymousType in examples and tests
Change-Id: I511d18ad8f73ea77a208e4448a8f86e5be5facc3
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'examples/qml/referenceexamples/signal')
-rw-r--r-- | examples/qml/referenceexamples/signal/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/qml/referenceexamples/signal/main.cpp b/examples/qml/referenceexamples/signal/main.cpp index bb75e02bc2..c62dd8ffc0 100644 --- a/examples/qml/referenceexamples/signal/main.cpp +++ b/examples/qml/referenceexamples/signal/main.cpp @@ -58,10 +58,10 @@ int main(int argc, char ** argv) { QCoreApplication app(argc, argv); - qmlRegisterType<BirthdayPartyAttached>(); + qmlRegisterAnonymousType<BirthdayPartyAttached>("People", 1); 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"); |