summaryrefslogtreecommitdiffstats
path: root/examples/declarative/extending/grouped/birthdayparty.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-07-08 06:38:29 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-07-08 06:38:29 (GMT)
commit4c916bd688bc9e20d75359f12208eb8a33dc6670 (patch)
tree190fb084f69128f6a1a788524cda21079f29cc6a /examples/declarative/extending/grouped/birthdayparty.cpp
parent239c3581bb84b6484547918fbb1672fed08970dd (diff)
parent46688b1e8b953f9e3a12d42b9aa73a8eba904f5b (diff)
downloadQt-4c916bd688bc9e20d75359f12208eb8a33dc6670.zip
Qt-4c916bd688bc9e20d75359f12208eb8a33dc6670.tar.gz
Qt-4c916bd688bc9e20d75359f12208eb8a33dc6670.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'examples/declarative/extending/grouped/birthdayparty.cpp')
-rw-r--r--examples/declarative/extending/grouped/birthdayparty.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/declarative/extending/grouped/birthdayparty.cpp b/examples/declarative/extending/grouped/birthdayparty.cpp
new file mode 100644
index 0000000..cdff6e1
--- /dev/null
+++ b/examples/declarative/extending/grouped/birthdayparty.cpp
@@ -0,0 +1,23 @@
+#include "birthdayparty.h"
+
+BirthdayParty::BirthdayParty(QObject *parent)
+: QObject(parent), m_celebrant(0)
+{
+}
+
+Person *BirthdayParty::celebrant() const
+{
+ return m_celebrant;
+}
+
+void BirthdayParty::setCelebrant(Person *c)
+{
+ m_celebrant = c;
+}
+
+QmlList<Person *> *BirthdayParty::guests()
+{
+ return &m_guests;
+}
+
+QML_DEFINE_TYPE(BirthdayParty, BirthdayParty);