summaryrefslogtreecommitdiffstats
path: root/examples/declarative/extending/attached/birthdayparty.h
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-10-26 03:55:18 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-10-26 03:55:18 (GMT)
commit8c1bffc7fa73e5249046bae949069bf8df23b78d (patch)
tree28e42cc52100af022074dc3f441af1bd11b3bb6c /examples/declarative/extending/attached/birthdayparty.h
parentc5315a322a65971d636bd73e2444cdd8565e00f4 (diff)
downloadQt-8c1bffc7fa73e5249046bae949069bf8df23b78d.zip
Qt-8c1bffc7fa73e5249046bae949069bf8df23b78d.tar.gz
Qt-8c1bffc7fa73e5249046bae949069bf8df23b78d.tar.bz2
Docs.
Diffstat (limited to 'examples/declarative/extending/attached/birthdayparty.h')
-rw-r--r--examples/declarative/extending/attached/birthdayparty.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/declarative/extending/attached/birthdayparty.h b/examples/declarative/extending/attached/birthdayparty.h
index 8249af5..2ea065c 100644
--- a/examples/declarative/extending/attached/birthdayparty.h
+++ b/examples/declarative/extending/attached/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
{
@@ -40,6 +40,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