summaryrefslogtreecommitdiffstats
path: root/examples/declarative/extending/default/birthdayparty.cpp
blob: ea97f54827cffacd3d5f8dc6634eb07131fe839d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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(People, 1, 0, 0, BirthdayParty, BirthdayParty);