summaryrefslogtreecommitdiffstats
path: root/examples/declarative/extending/adding/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/extending/adding/main.cpp')
-rw-r--r--examples/declarative/extending/adding/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/declarative/extending/adding/main.cpp b/examples/declarative/extending/adding/main.cpp
index b9e5aa3..7b33895 100644
--- a/examples/declarative/extending/adding/main.cpp
+++ b/examples/declarative/extending/adding/main.cpp
@@ -47,8 +47,9 @@
int main(int argc, char ** argv)
{
QCoreApplication app(argc, argv);
-
+//![0]
qmlRegisterType<Person>("People", 1,0, "Person");
+//![0]
QDeclarativeEngine engine;
QDeclarativeComponent component(&engine, ":example.qml");