summaryrefslogtreecommitdiffstats
path: root/examples/declarative/extending/coercion/main.cpp
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-03-12 14:44:36 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-03-12 14:44:36 (GMT)
commite4675125c13fa58db82ffe0e2738003a544352ee (patch)
tree2cc10ea3d6ca50db23a0a450251b903d89121b7c /examples/declarative/extending/coercion/main.cpp
parentf0915d4a19f30b3ec0e0ee1c538e11be6b43a7b3 (diff)
parent7015f7ae557f04d0ba5d6b86e521686adc5d79a1 (diff)
downloadQt-e4675125c13fa58db82ffe0e2738003a544352ee.zip
Qt-e4675125c13fa58db82ffe0e2738003a544352ee.tar.gz
Qt-e4675125c13fa58db82ffe0e2738003a544352ee.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: (75 commits) Fix installation of imports libraries Change PathView offset property to use range 0 - 1.0 Tweak benchmark Optimization: Use linked list for context children Add new declarative photoviewer demo Remove dead code Make QML the object allocator more flexible Fix crash on 32-bit platforms Enable GL samplebuffers by default on Mac OS X Fix test Update QmlChanges.txt Update particles autotests Reenable the QML binding optimizer for "safe" optimizations Crash Revert "Use one thread for all instances." Update QmlChanges.txt Remove Qt.closestAngle(). Fix importing qml modules from rcc resources Crash Cosmetic tweaks ...
Diffstat (limited to 'examples/declarative/extending/coercion/main.cpp')
-rw-r--r--examples/declarative/extending/coercion/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/declarative/extending/coercion/main.cpp b/examples/declarative/extending/coercion/main.cpp
index 1e2209f..312aff9 100644
--- a/examples/declarative/extending/coercion/main.cpp
+++ b/examples/declarative/extending/coercion/main.cpp
@@ -49,12 +49,12 @@ int main(int argc, char ** argv)
{
QCoreApplication app(argc, argv);
- QML_REGISTER_TYPE(People, 1,0, BirthdayParty, BirthdayParty);
+ qmlRegisterType<BirthdayParty>("People", 1,0, "BirthdayParty");
// ![0]
- QML_REGISTER_NOCREATE_TYPE(Person);
+ qmlRegisterType<Person>();
// ![0]
- QML_REGISTER_TYPE(People, 1,0, Boy, Boy);
- QML_REGISTER_TYPE(People, 1,0, Girl, Girl);
+ qmlRegisterType<Boy>("People", 1,0, "Boy");
+ qmlRegisterType<Girl>("People", 1,0, "Girl");
QDeclarativeEngine engine;
QDeclarativeComponent component(&engine, ":example.qml");