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/attached/main.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/attached/main.cpp')
-rw-r--r-- | examples/declarative/extending/attached/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/declarative/extending/attached/main.cpp b/examples/declarative/extending/attached/main.cpp index fd2d525..f1055ae 100644 --- a/examples/declarative/extending/attached/main.cpp +++ b/examples/declarative/extending/attached/main.cpp @@ -60,10 +60,10 @@ int main(int argc, char ** argv) QDeclarativeComponent component(&engine, ":example.qml"); BirthdayParty *party = qobject_cast<BirthdayParty *>(component.create()); - if (party && party->celebrant()) { - qWarning() << party->celebrant()->name() << "is having a birthday!"; + if (party && party->host()) { + qWarning() << party->host()->name() << "is having a birthday!"; - if (qobject_cast<Boy *>(party->celebrant())) + if (qobject_cast<Boy *>(party->host())) qWarning() << "He is inviting:"; else qWarning() << "She is inviting:"; |