diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-08-19 11:09:48 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-08-20 08:42:01 +0200 |
commit | 73a9c52fedf25196ed17d55cd1c6b1c1c9fd991d (patch) | |
tree | d73a62a87734a8de3f5be1f3a4956afda64cfd3f /examples/qml/referenceexamples/properties | |
parent | 6165699f656834eeca7248a3650d105f9bf97caf (diff) |
Reference Examples: Use initializer lists to avoid repeating type naems
Change-Id: Iff0b31d9b641a55ea246235ba1d7a066592ef0c0
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'examples/qml/referenceexamples/properties')
-rw-r--r-- | examples/qml/referenceexamples/properties/birthdayparty.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/qml/referenceexamples/properties/birthdayparty.cpp b/examples/qml/referenceexamples/properties/birthdayparty.cpp index 717c3e0f71..9abb08dbd9 100644 --- a/examples/qml/referenceexamples/properties/birthdayparty.cpp +++ b/examples/qml/referenceexamples/properties/birthdayparty.cpp @@ -67,11 +67,11 @@ void BirthdayParty::setHost(Person *c) QQmlListProperty<Person> BirthdayParty::guests() { - return QQmlListProperty<Person>(this, this, + return {this, this, &BirthdayParty::appendGuest, &BirthdayParty::guestCount, &BirthdayParty::guest, - &BirthdayParty::clearGuests); + &BirthdayParty::clearGuests}; } void BirthdayParty::appendGuest(Person* p) { |