aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qml/cppextensions/referenceexamples/properties/birthdayparty.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qml/cppextensions/referenceexamples/properties/birthdayparty.h')
-rw-r--r--examples/qml/cppextensions/referenceexamples/properties/birthdayparty.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/qml/cppextensions/referenceexamples/properties/birthdayparty.h b/examples/qml/cppextensions/referenceexamples/properties/birthdayparty.h
index 2c3d128b6d..84eefa52ae 100644
--- a/examples/qml/cppextensions/referenceexamples/properties/birthdayparty.h
+++ b/examples/qml/cppextensions/referenceexamples/properties/birthdayparty.h
@@ -41,7 +41,7 @@
#define BIRTHDAYPARTY_H
#include <QObject>
-#include <QDeclarativeListProperty>
+#include <QQmlListProperty>
#include "person.h"
// ![0]
@@ -53,7 +53,7 @@ class BirthdayParty : public QObject
Q_PROPERTY(Person *host READ host WRITE setHost)
// ![1]
// ![2]
- Q_PROPERTY(QDeclarativeListProperty<Person> guests READ guests)
+ Q_PROPERTY(QQmlListProperty<Person> guests READ guests)
// ![2]
// ![3]
public:
@@ -62,7 +62,7 @@ public:
Person *host() const;
void setHost(Person *);
- QDeclarativeListProperty<Person> guests();
+ QQmlListProperty<Person> guests();
int guestCount() const;
Person *guest(int) const;