summaryrefslogtreecommitdiffstats
path: root/examples/declarative/extending/signal/main.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-04-27 19:32:08 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-04-27 19:32:08 (GMT)
commite0a2a4d343902e96e51df1fabeaaf543f4cd2a47 (patch)
tree4cb1ab83e9881a403e2857882fb0d6383118a393 /examples/declarative/extending/signal/main.cpp
parentf6f9777408691a945c49ef8ec5037d8401c747eb (diff)
parenta17339e943f21bb6c6e16884f716dd9ab8f94938 (diff)
downloadQt-e0a2a4d343902e96e51df1fabeaaf543f4cd2a47.zip
Qt-e0a2a4d343902e96e51df1fabeaaf543f4cd2a47.tar.gz
Qt-e0a2a4d343902e96e51df1fabeaaf543f4cd2a47.tar.bz2
Merge remote branch 'origin/4.7' into qt-master-from-4.7
Conflicts: tools/qdoc3/test/assistant.qdocconf tools/qdoc3/test/designer.qdocconf tools/qdoc3/test/linguist.qdocconf tools/qdoc3/test/qmake.qdocconf tools/qdoc3/test/qt-html-templates.qdocconf tools/qdoc3/test/qt.qdocconf
Diffstat (limited to 'examples/declarative/extending/signal/main.cpp')
-rw-r--r--examples/declarative/extending/signal/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/declarative/extending/signal/main.cpp b/examples/declarative/extending/signal/main.cpp
index 1b23a46..453f688 100644
--- a/examples/declarative/extending/signal/main.cpp
+++ b/examples/declarative/extending/signal/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:";