summaryrefslogtreecommitdiffstats
path: root/examples/declarative/extending/attached/birthdayparty.h
diff options
context:
space:
mode:
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