From 6d0a453f41d304239285d64b06612c36922be701 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 25 Nov 2019 16:10:04 +0100 Subject: Use the extended QQmlListProperty interface in a few places Task-number: QTBUG-79263 Change-Id: If518f644b5b9eddbacfb1cb16fbb557127ffcfb2 Reviewed-by: Simon Hausmann Reviewed-by: Shawn Rutledge --- examples/qml/referenceexamples/properties/birthdayparty.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples/qml/referenceexamples/properties/birthdayparty.h') diff --git a/examples/qml/referenceexamples/properties/birthdayparty.h b/examples/qml/referenceexamples/properties/birthdayparty.h index fb8b63a79d..a5704972cc 100644 --- a/examples/qml/referenceexamples/properties/birthdayparty.h +++ b/examples/qml/referenceexamples/properties/birthdayparty.h @@ -79,12 +79,16 @@ public: int guestCount() const; Person *guest(int) const; void clearGuests(); + void replaceGuest(int, Person*); + void removeLastGuest(); private: static void appendGuest(QQmlListProperty*, Person*); static int guestCount(QQmlListProperty*); static Person* guest(QQmlListProperty*, int); static void clearGuests(QQmlListProperty*); + static void replaceGuest(QQmlListProperty*, int, Person*); + static void removeLastGuest(QQmlListProperty*); Person *m_host; QVector m_guests; -- cgit v1.2.3