diff options
author | mae <qt-info@nokia.com> | 2010-03-10 17:29:44 (GMT) |
---|---|---|
committer | mae <qt-info@nokia.com> | 2010-03-10 17:31:33 (GMT) |
commit | e5922ab126f3532483b18720ce893d6be826d50e (patch) | |
tree | 1d2913660c64847b8bade9ab89e159a8bdc0de63 /examples/declarative/extending/properties/main.cpp | |
parent | b8f9d43dc87054f4f0322a2d124beeb7aaf8bb8f (diff) | |
download | Qt-e5922ab126f3532483b18720ce893d6be826d50e.zip Qt-e5922ab126f3532483b18720ce893d6be826d50e.tar.gz Qt-e5922ab126f3532483b18720ce893d6be826d50e.tar.bz2 |
Document - and use - the qmlRegisterXXX template functions
This commit removes the obsolete QML_REGISTER_TYPE macros.
Diffstat (limited to 'examples/declarative/extending/properties/main.cpp')
-rw-r--r-- | examples/declarative/extending/properties/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/extending/properties/main.cpp b/examples/declarative/extending/properties/main.cpp index ce69ad2..350f8bd 100644 --- a/examples/declarative/extending/properties/main.cpp +++ b/examples/declarative/extending/properties/main.cpp @@ -49,8 +49,8 @@ int main(int argc, char ** argv) { QCoreApplication app(argc, argv); - QML_REGISTER_TYPE(People, 1,0, BirthdayParty, BirthdayParty); - QML_REGISTER_TYPE(People, 1,0, Person, Person); + qmlRegisterType<BirthdayParty>("People", 1,0, "BirthdayParty"); + qmlRegisterType<Person>("People", 1,0, "Person"); QDeclarativeEngine engine; QDeclarativeComponent component(&engine, ":example.qml"); |