aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/cppextensions/referenceexamples/coercion/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/cppextensions/referenceexamples/coercion/main.cpp')
-rw-r--r--examples/declarative/cppextensions/referenceexamples/coercion/main.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/declarative/cppextensions/referenceexamples/coercion/main.cpp b/examples/declarative/cppextensions/referenceexamples/coercion/main.cpp
index e0eabae4b4..95b309de4c 100644
--- a/examples/declarative/cppextensions/referenceexamples/coercion/main.cpp
+++ b/examples/declarative/cppextensions/referenceexamples/coercion/main.cpp
@@ -49,11 +49,14 @@ int main(int argc, char ** argv)
QCoreApplication app(argc, argv);
qmlRegisterType<BirthdayParty>("People", 1,0, "BirthdayParty");
-// ![0]
+ //![0]
qmlRegisterType<Person>();
-// ![0]
+ //![0]
+
+ //![register boy girl]
qmlRegisterType<Boy>("People", 1,0, "Boy");
qmlRegisterType<Girl>("People", 1,0, "Girl");
+ //![register boy girl]
QDeclarativeEngine engine;
QDeclarativeComponent component(&engine, QUrl("qrc:example.qml"));