summaryrefslogtreecommitdiffstats
path: root/examples/declarative/extending/default/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/extending/default/main.cpp')
-rw-r--r--examples/declarative/extending/default/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/declarative/extending/default/main.cpp b/examples/declarative/extending/default/main.cpp
index c6cc847..ccbee83 100644
--- a/examples/declarative/extending/default/main.cpp
+++ b/examples/declarative/extending/default/main.cpp
@@ -60,8 +60,9 @@ int main(int argc, char ** argv)
qWarning() << "He is inviting:";
else
qWarning() << "She is inviting:";
- for (int ii = 0; ii < party->guests()->count(); ++ii)
- qWarning() << " " << party->guests()->at(ii)->name();
+
+ for (int ii = 0; ii < party->guestCount(); ++ii)
+ qWarning() << " " << party->guest(ii)->name();
} else {
qWarning() << "An error occured";
}