summaryrefslogtreecommitdiffstats
path: root/examples/declarative/extending/grouped/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/extending/grouped/main.cpp')
-rw-r--r--examples/declarative/extending/grouped/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/extending/grouped/main.cpp b/examples/declarative/extending/grouped/main.cpp
index 23ba8bf..79aaab5 100644
--- a/examples/declarative/extending/grouped/main.cpp
+++ b/examples/declarative/extending/grouped/main.cpp
@@ -62,8 +62,8 @@ int main(int argc, char ** argv)
qWarning() << "She is inviting:";
Person *bestShoe = 0;
- for (int ii = 0; ii < party->guests()->count(); ++ii) {
- Person *guest = party->guests()->at(ii);
+ for (int ii = 0; ii < party->guestCount(); ++ii) {
+ Person *guest = party->guest(ii);
qWarning() << " " << guest->name();
if (!bestShoe || bestShoe->shoe()->price() < guest->shoe()->price())