diff options
Diffstat (limited to 'examples/qml/referenceexamples/properties/birthdayparty.h')
-rw-r--r-- | examples/qml/referenceexamples/properties/birthdayparty.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/qml/referenceexamples/properties/birthdayparty.h b/examples/qml/referenceexamples/properties/birthdayparty.h index 9da5158de2..7e1668add3 100644 --- a/examples/qml/referenceexamples/properties/birthdayparty.h +++ b/examples/qml/referenceexamples/properties/birthdayparty.h @@ -76,18 +76,18 @@ public: QQmlListProperty<Person> guests(); void appendGuest(Person*); - int guestCount() const; - Person *guest(int) const; + qsizetype guestCount() const; + Person *guest(qsizetype) const; void clearGuests(); - void replaceGuest(int, Person*); + void replaceGuest(qsizetype, Person*); void removeLastGuest(); private: static void appendGuest(QQmlListProperty<Person>*, Person*); - static int guestCount(QQmlListProperty<Person>*); - static Person* guest(QQmlListProperty<Person>*, int); + static qsizetype guestCount(QQmlListProperty<Person>*); + static Person* guest(QQmlListProperty<Person>*, qsizetype); static void clearGuests(QQmlListProperty<Person>*); - static void replaceGuest(QQmlListProperty<Person>*, int, Person*); + static void replaceGuest(QQmlListProperty<Person>*, qsizetype, Person*); static void removeLastGuest(QQmlListProperty<Person>*); Person *m_host; |