summaryrefslogtreecommitdiffstats
path: root/examples/declarative/extending/signal/birthdayparty.h
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-02-22 08:24:05 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-02-22 08:24:05 (GMT)
commite2f90ecdde9550986df1539aa88eb5fc41d939e1 (patch)
tree354e192d83d1ed695373f085faa3a448e2599713 /examples/declarative/extending/signal/birthdayparty.h
parent69b1784edb6dd82f26100d0e539bfa8a65bdd35d (diff)
parent33eb76f050b45718d87926a8ff7afc89d6201c16 (diff)
downloadQt-e2f90ecdde9550986df1539aa88eb5fc41d939e1.zip
Qt-e2f90ecdde9550986df1539aa88eb5fc41d939e1.tar.gz
Qt-e2f90ecdde9550986df1539aa88eb5fc41d939e1.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-qml into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/qt-qml: Replace QmlList* and QList* support with a single QmlListProperty type Rename MouseRegion -> MouseArea Update QmlChanges with animation API changes. Document the default velocity of EaseFollow Remove use of unexprted private classes. Fix compile error on Solaris Increase durations when testing Behaviors. Add cached path rounded rect painting benchmark. Remove use of direct event posting. Use QTest::keyClick() for keys.
Diffstat (limited to 'examples/declarative/extending/signal/birthdayparty.h')
-rw-r--r--examples/declarative/extending/signal/birthdayparty.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/declarative/extending/signal/birthdayparty.h b/examples/declarative/extending/signal/birthdayparty.h
index 8ce5d7b..30ed43b 100644
--- a/examples/declarative/extending/signal/birthdayparty.h
+++ b/examples/declarative/extending/signal/birthdayparty.h
@@ -65,7 +65,7 @@ class BirthdayParty : public QObject
{
Q_OBJECT
Q_PROPERTY(Person *celebrant READ celebrant WRITE setCelebrant)
-Q_PROPERTY(QmlList<Person *> *guests READ guests)
+Q_PROPERTY(QmlListProperty<Person> guests READ guests)
Q_CLASSINFO("DefaultProperty", "guests")
public:
BirthdayParty(QObject *parent = 0);
@@ -73,7 +73,9 @@ public:
Person *celebrant() const;
void setCelebrant(Person *);
- QmlList<Person *> *guests();
+ QmlListProperty<Person> guests();
+ int guestCount() const;
+ Person *guest(int) const;
static BirthdayPartyAttached *qmlAttachedProperties(QObject *);
@@ -85,7 +87,7 @@ signals:
private:
Person *m_celebrant;
- QmlConcreteList<Person *> m_guests;
+ QList<Person *> m_guests;
};
QML_DECLARE_TYPEINFO(BirthdayParty, QML_HAS_ATTACHED_PROPERTIES)