diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-10-26 03:55:18 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-10-26 03:55:18 (GMT) |
commit | 8c1bffc7fa73e5249046bae949069bf8df23b78d (patch) | |
tree | 28e42cc52100af022074dc3f441af1bd11b3bb6c /examples/declarative/extending/signal/birthdayparty.h | |
parent | c5315a322a65971d636bd73e2444cdd8565e00f4 (diff) | |
download | Qt-8c1bffc7fa73e5249046bae949069bf8df23b78d.zip Qt-8c1bffc7fa73e5249046bae949069bf8df23b78d.tar.gz Qt-8c1bffc7fa73e5249046bae949069bf8df23b78d.tar.bz2 |
Docs.
Diffstat (limited to 'examples/declarative/extending/signal/birthdayparty.h')
-rw-r--r-- | examples/declarative/extending/signal/birthdayparty.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/declarative/extending/signal/birthdayparty.h b/examples/declarative/extending/signal/birthdayparty.h index 14d7c29..5dea2e8 100644 --- a/examples/declarative/extending/signal/birthdayparty.h +++ b/examples/declarative/extending/signal/birthdayparty.h @@ -9,7 +9,7 @@ class BirthdayPartyAttached : public QObject { Q_OBJECT -Q_PROPERTY(QDate rsvp READ rsvp WRITE setRsvp); +Q_PROPERTY(QDate rsvp READ rsvp WRITE setRsvp) public: BirthdayPartyAttached(QObject *object); @@ -19,7 +19,7 @@ public: private: QDate m_rsvp; }; -QML_DECLARE_TYPE(BirthdayPartyAttached); +QML_DECLARE_TYPE(BirthdayPartyAttached) class BirthdayParty : public QObject { @@ -47,6 +47,8 @@ private: Person *m_celebrant; QmlConcreteList<Person *> m_guests; }; -QML_DECLARE_TYPE(BirthdayParty); + +QML_DECLARE_TYPEINFO(BirthdayParty, QML_HAS_ATTACHED_PROPERTIES) +QML_DECLARE_TYPE(BirthdayParty) #endif // BIRTHDAYPARTY_H |