summaryrefslogtreecommitdiff
path: root/src/declarative/qml/qdeclarativelist.h
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2010-03-12 13:05:42 +0100
committerGunnar Sletta <gunnar@trolltech.com>2010-03-15 14:27:30 +0100
commitff5349090312e5a4d1ab22820440ea717cc2fd04 (patch)
tree91e0c77be91bbbce07c2bb20b7f6e6368d014a44 /src/declarative/qml/qdeclarativelist.h
parent615d51e094e9cd9db6b5adf85c598fad78df650e (diff)
downloadqt4-tools-ff5349090312e5a4d1ab22820440ea717cc2fd04.tar.gz
--warn;
Diffstat (limited to 'src/declarative/qml/qdeclarativelist.h')
-rw-r--r--src/declarative/qml/qdeclarativelist.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/declarative/qml/qdeclarativelist.h b/src/declarative/qml/qdeclarativelist.h
index eac49674d8..ed402a82e4 100644
--- a/src/declarative/qml/qdeclarativelist.h
+++ b/src/declarative/qml/qdeclarativelist.h
@@ -61,12 +61,12 @@ struct QDeclarativeListProperty {
typedef T *(*AtFunction)(QDeclarativeListProperty<T> *, int);
typedef void (*ClearFunction)(QDeclarativeListProperty<T> *);
- QDeclarativeListProperty()
+ QDeclarativeListProperty()
: object(0), data(0), append(0), count(0), at(0), clear(0), dummy1(0), dummy2(0) {}
QDeclarativeListProperty(QObject *o, QList<T *> &list)
: object(o), data(&list), append(qlist_append), count(qlist_count), at(qlist_at),
clear(qlist_clear), dummy1(0), dummy2(0) {}
- QDeclarativeListProperty(QObject *o, void *d, AppendFunction a, CountFunction c = 0, AtFunction t = 0,
+ QDeclarativeListProperty(QObject *o, void *d, AppendFunction a, CountFunction c = 0, AtFunction t = 0,
ClearFunction r = 0)
: object(o), data(d), append(a), count(c), at(t), clear(r), dummy1(0), dummy2(0) {}
@@ -81,7 +81,7 @@ struct QDeclarativeListProperty {
QObject *object;
void *data;
-
+
AppendFunction append;
CountFunction count;
@@ -94,7 +94,7 @@ struct QDeclarativeListProperty {
private:
static void qlist_append(QDeclarativeListProperty *p, T *v) {
- ((QList<T *> *)p->data)->append(v);
+ ((QList<T *> *)p->data)->append(v);
}
static int qlist_count(QDeclarativeListProperty *p) {
return ((QList<T *> *)p->data)->count();