diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-04-21 00:58:02 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-04-21 00:59:45 (GMT) |
commit | 61f3cb6e79fea0aed80df091013c2228f64955ec (patch) | |
tree | 916d4879a326739673f918fc340bc5a4c356bcb9 /examples/declarative/extending/default/birthdayparty.cpp | |
parent | e11a5c4d1a1bb80ac03655227c833b560c7cad3c (diff) | |
download | Qt-61f3cb6e79fea0aed80df091013c2228f64955ec.zip Qt-61f3cb6e79fea0aed80df091013c2228f64955ec.tar.gz Qt-61f3cb6e79fea0aed80df091013c2228f64955ec.tar.bz2 |
Improve docs and examples for Extending QML in C++
Diffstat (limited to 'examples/declarative/extending/default/birthdayparty.cpp')
-rw-r--r-- | examples/declarative/extending/default/birthdayparty.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/declarative/extending/default/birthdayparty.cpp b/examples/declarative/extending/default/birthdayparty.cpp index 523a42d..4f415a3 100644 --- a/examples/declarative/extending/default/birthdayparty.cpp +++ b/examples/declarative/extending/default/birthdayparty.cpp @@ -41,18 +41,18 @@ #include "birthdayparty.h" BirthdayParty::BirthdayParty(QObject *parent) -: QObject(parent), m_celebrant(0) +: QObject(parent), m_host(0) { } -Person *BirthdayParty::celebrant() const +Person *BirthdayParty::host() const { - return m_celebrant; + return m_host; } -void BirthdayParty::setCelebrant(Person *c) +void BirthdayParty::setHost(Person *c) { - m_celebrant = c; + m_host = c; } QDeclarativeListProperty<Person> BirthdayParty::guests() |